From b8dc5a646dcd42eb0f36423d344589ed814bd822 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Mon, 16 Jun 2014 22:21:16 +0930 Subject: [PATCH] Fix duplicated assignments to __rel_iplt and __rela_iplt symbols * scripttempl/elf.sc: Edit out __rela_iplt symbol assignments from .rel sections, and __rel_iplt from .rela sections. --- ld/ChangeLog | 5 +++++ ld/scripttempl/elf.sc | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/ld/ChangeLog b/ld/ChangeLog index 0a8eb726055..a6e8d3c7c3b 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +2014-06-17 Alan Modra + + * scripttempl/elf.sc: Edit out __rela_iplt symbol assignments from + .rel sections, and __rel_iplt from .rela sections. + 2014-06-12 Alan Modra Backport mainline patches diff --git a/ld/scripttempl/elf.sc b/ld/scripttempl/elf.sc index e8126cbf31a..6d0d13d8e72 100644 --- a/ld/scripttempl/elf.sc +++ b/ld/scripttempl/elf.sc @@ -410,13 +410,13 @@ cat >> ldscripts/dyntmp.$$ <> ldscripts/dyntmp.$$ +sed -e '/^[ ]*[{}][ ]*$/d;/:[ ]*$/d;/\.rela\./d;/__rela_iplt_/d;s/^.*: { *\(.*\)}$/ \1/' $COMBRELOC >> ldscripts/dyntmp.$$ cat >> ldscripts/dyntmp.$$ <> ldscripts/dyntmp.$$ +sed -e '/^[ ]*[{}][ ]*$/d;/:[ ]*$/d;/\.rel\./d;/__rel_iplt_/d;s/^.*: { *\(.*\)}/ \1/' $COMBRELOC >> ldscripts/dyntmp.$$ cat >> ldscripts/dyntmp.$$ <