From 9cb5a3af34df486696f4f387483d66bfc076e4fc Mon Sep 17 00:00:00 2001 From: Edward O'Callaghan Date: Wed, 12 Nov 2014 11:52:56 +1100 Subject: [PATCH] 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 Reviewed-on: http://review.coreboot.org/7439 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi --- src/lib/rmodule.ld | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/rmodule.ld b/src/lib/rmodule.ld index 06458def18..f3e7cba212 100644 --- a/src/lib/rmodule.ld +++ b/src/lib/rmodule.ld @@ -97,5 +97,7 @@ SECTIONS /DISCARD/ : { /* Drop unnecessary sections. */ *(.eh_frame); + *(.note); + *(.note.*); } }