From f1778ce33366f2005f1ac5e492525012b47d788e Mon Sep 17 00:00:00 2001 From: Nico Huber Date: Fri, 28 Jul 2017 19:30:43 +0200 Subject: lib/program.ld: Guard .id section placement For x86, we place the .id section at 4GiB - CONFIG_ID_SECTION_OFFSET. To take effect, we have to guard the conflicting default placement in `program.ld`. Also, as we only include the .id section into the boot- block, guard it by ENV_BOOTBLOCK too. Change-Id: Idc7cbd670ce4f75b7790ff8d95578683e355ba7e Signed-off-by: Nico Huber Reviewed-on: https://review.coreboot.org/20810 Reviewed-by: Aaron Durbin Tested-by: build bot (Jenkins) Tested-by: Raptor Engineering Automated Test Stand --- src/lib/program.ld | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/lib') diff --git a/src/lib/program.ld b/src/lib/program.ld index 1526aadf0a..668b29b18e 100644 --- a/src/lib/program.ld +++ b/src/lib/program.ld @@ -34,7 +34,10 @@ *(.rom.data); *(.text._start); *(.text.stage_entry); +#if ENV_BOOTBLOCK && !(IS_ENABLED(CONFIG_ARCH_BOOTBLOCK_X86_32) || \ + IS_ENABLED(CONFIG_ARCH_BOOTBLOCK_X86_64)) KEEP(*(.id)); +#endif *(.text); *(.text.*); -- cgit v1.2.3