[build] Fix building on older versions of binutils

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>
This commit is contained in:
Michael Brown
2016-02-19 19:45:23 +00:00
parent 163f8acba0
commit a4923354e3
2 changed files with 20 additions and 10 deletions

View File

@@ -9,10 +9,6 @@ LDFLAGS += --section-start=.textdata=0xffffffffeb000000
#
CFLAGS += -mno-red-zone
# Generate extra space for page tables to cover .textdata
#
LDFLAGS += --defsym=_use_page_tables=1
# Include generic BIOS Makefile
#
MAKEDEPS += arch/x86/Makefile.pcbios