src/lib/rmodule.ld: DISCARD (.note|.note.*) sections

We have no need for these sections winding up in the build
leading to possible overlaps, such as in the case of Clang
builds. Discard sections from inclusion into the resulting
binary.

Change-Id: Ie807e5809594dcc6e94660a64e359e3b2ca1a0f6
Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Reviewed-on: http://review.coreboot.org/7439
Tested-by: build bot (Jenkins)
Reviewed-by: Patrick Georgi <pgeorgi@google.com>
This commit is contained in:
Edward O'Callaghan 2014-11-12 11:52:56 +11:00
parent 5cbbc70245
commit 9cb5a3af34
1 changed files with 2 additions and 0 deletions

View File

@ -97,5 +97,7 @@ SECTIONS
/DISCARD/ : { /DISCARD/ : {
/* Drop unnecessary sections. */ /* Drop unnecessary sections. */
*(.eh_frame); *(.eh_frame);
*(.note);
*(.note.*);
} }
} }