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 <nico.h@gmx.de> Reviewed-on: https://review.coreboot.org/20810 Reviewed-by: Aaron Durbin <adurbin@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Tested-by: Raptor Engineering Automated Test Stand <noreply@raptorengineeringinc.com>
This commit is contained in:
		@@ -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.*);
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user