diff options
author | Gabe Black <gabeblack@google.com> | 2012-04-17 15:59:56 -0700 |
---|---|---|
committer | Stefan Reinauer <stefan.reinauer@coreboot.org> | 2012-11-07 18:30:11 +0100 |
commit | b9edbbd7bf799a194fc76bf9a514e4547fe97d26 (patch) | |
tree | c15d81686e844ee230b54a7caf3c822f7a8cfaaa /payloads/libpayload | |
parent | accc6a5e046b66c84b01556e93a71800afe8ea68 (diff) |
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>
Diffstat (limited to 'payloads/libpayload')
-rw-r--r-- | payloads/libpayload/lib/libpayload.ldscript | 5 |
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*) + } } |