summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward O'Callaghan <eocallaghan@alterapraxis.com>2014-11-12 11:52:56 +1100
committerEdward O'Callaghan <eocallaghan@alterapraxis.com>2014-11-12 18:13:37 +0100
commit9cb5a3af34df486696f4f387483d66bfc076e4fc (patch)
tree20771c91ae940f3fc5223e928a6811d1780557c3
parent5cbbc702456ceab01b52bda49a2b991fde1658e7 (diff)
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>
-rw-r--r--src/lib/rmodule.ld2
1 files changed, 2 insertions, 0 deletions
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.*);
}
}