From: Alan Modra Date: Mon, 16 Jun 2014 12:51:16 +0000 (+0930) Subject: Fix duplicated assignments to __rel_iplt and __rela_iplt symbols X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b8dc5a646dcd42eb0f36423d344589ed814bd822;p=thirdparty%2Fbinutils-gdb.git 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. --- 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.$$ <