arch/x86/kernel/vmlinux.lds.S: allow preprocessor use on linker script
We want to grow arch/x86/kernel/vmlinux.lds.S with macros
to allow us to standardize on ELF sections, and custom
Linux sections. This lets us clearly associate custom
ELF sections we add to specific standard ELF / and
standard Linux sections.
The standardizaiton of the sections will be done later. After
this vmlinux.lds.S will #include <linux/sections.h>, but in
order to support this we must ask gcc to preprocess the
vmlinux.lds.S for us.
As is standard in the Linux kernel (in scripts/Makefile.build)
this also defines __ASSEMBLY__ LINKER_SCRIPT to allow us to
ifdef out code that we know will barf on asm code or the in
our case, the linker script.
Signed-off-by: Luis R. Rodriguez <mcgrof@kernel.org>
2 files changed