Some older versions of binutils have issues with both the use of PROVIDE() and the interpretation of numeric literals within a section description. Work around these older versions by defining the required numeric literals outside of any section description, and by automatically determining whether or not to generate extra space for page tables rather than relying on LDFLAGS. Signed-off-by: Michael Brown <mcb30@ipxe.org>
16 lines
370 B
Makefile
16 lines
370 B
Makefile
# -*- makefile -*- : Force emacs to use Makefile mode
|
|
|
|
# Place .textdata in negative 2GB of address space
|
|
#
|
|
CFLAGS += -mcmodel=kernel
|
|
LDFLAGS += --section-start=.textdata=0xffffffffeb000000
|
|
|
|
# Assembly code does not respect a red zone.
|
|
#
|
|
CFLAGS += -mno-red-zone
|
|
|
|
# Include generic BIOS Makefile
|
|
#
|
|
MAKEDEPS += arch/x86/Makefile.pcbios
|
|
include arch/x86/Makefile.pcbios
|