summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2012-04-17 15:59:56 -0700
committerStefan Reinauer <stefan.reinauer@coreboot.org>2012-11-07 18:30:11 +0100
commitb9edbbd7bf799a194fc76bf9a514e4547fe97d26 (patch)
treec15d81686e844ee230b54a7caf3c822f7a8cfaaa
parentaccc6a5e046b66c84b01556e93a71800afe8ea68 (diff)
downloadcoreboot-b9edbbd7bf799a194fc76bf9a514e4547fe97d26.tar.xz
Discard .note sections when linking.
These end up being loaded at 0 otherwise and overwrite some coreboot tables. Built and booted on Stumpy. Saw that the coreboot tables were no longer overwritten. Change-Id: Ia9f521d976d0ad544a8205323ae0ddfa8d253d29 Signed-off-by: Gabe Black <gabeblack@google.com> Reviewed-on: http://review.coreboot.org/1721 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
-rw-r--r--payloads/libpayload/lib/libpayload.ldscript5
1 files changed, 4 insertions, 1 deletions
diff --git a/payloads/libpayload/lib/libpayload.ldscript b/payloads/libpayload/lib/libpayload.ldscript
index 4925e8681a..43b92207c4 100644
--- a/payloads/libpayload/lib/libpayload.ldscript
+++ b/payloads/libpayload/lib/libpayload.ldscript
@@ -85,5 +85,8 @@ SECTIONS
_end = .;
- /DISCARD/ : { *(.comment) }
+ /DISCARD/ : {
+ *(.comment)
+ *(.note*)
+ }
}