aboutsummaryrefslogtreecommitdiff
path: root/src/arch
diff options
context:
space:
mode:
authorAaron Durbin <adurbin@chromium.org>2015-09-03 14:39:39 -0500
committerAaron Durbin <adurbin@chromium.org>2015-09-09 03:23:53 +0000
commitd2cd7f6c6a5f45f3a731c45fe7553bf166bd9ae3 (patch)
tree14a6970fc5459714530bc1020feec2aaa955053f /src/arch
parente581b067ca968ce4dae818d8bf09081c1eb6e11a (diff)
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 <adubin@chromium.org> Reviewed-on: http://review.coreboot.org/11505 Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org> Tested-by: build bot (Jenkins) Reviewed-by: Alexandru Gagniuc <mr.nuke.me@gmail.com> Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'src/arch')
-rw-r--r--src/arch/x86/romstage.ld4
1 files changed, 1 insertions, 3 deletions
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 = .;
}