From d2cd7f6c6a5f45f3a731c45fe7553bf166bd9ae3 Mon Sep 17 00:00:00 2001 From: Aaron Durbin Date: Thu, 3 Sep 2015 14:39:39 -0500 Subject: x86: remove unused sections from romstage.ld Now that the only source of ELF sections for romstage are from directly included .inc files or ROMCC generated inc files the subsection globs can be removed. i.e. Remove .rom.data.* and .rom.text.* listings. Lastly, put the .rom.data section directly after the .rom.text. They are by definition read-only and they are generated from the same place. BUG=chrome-os-partner:44827 BRANCH=None TEST=Spot checked !ROMCC and ROMCC boards. Confirmed only .rom.text .rom.data sections exist. Change-Id: Id17cf95c943103de006c5f3f21a625838ab49929 Signed-off-by: Aaron Durbin Reviewed-on: http://review.coreboot.org/11505 Reviewed-by: Stefan Reinauer Tested-by: build bot (Jenkins) Reviewed-by: Alexandru Gagniuc Reviewed-by: Patrick Georgi --- src/arch/x86/romstage.ld | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src') diff --git a/src/arch/x86/romstage.ld b/src/arch/x86/romstage.ld index 951ca656a3..cc0142eb80 100644 --- a/src/arch/x86/romstage.ld +++ b/src/arch/x86/romstage.ld @@ -26,17 +26,15 @@ SECTIONS .rom . : { _rom = .; *(.rom.text); - *(.rom.text.*); + *(.rom.data); *(.text); *(.text.*); - *(.rom.data); . = ALIGN(4); _cbmem_init_hooks = .; KEEP(*(.rodata.cbmem_init_hooks)); _ecbmem_init_hooks = .; *(.rodata); *(.rodata.*); - *(.rom.data.*); . = ALIGN(16); _erom = .; } -- cgit v1.2.3