]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Fix duplicated assignments to __rel_iplt and __rela_iplt symbols
authorAlan Modra <amodra@gmail.com>
Mon, 16 Jun 2014 12:51:16 +0000 (22:21 +0930)
committerAlan Modra <amodra@gmail.com>
Tue, 17 Jun 2014 02:10:31 +0000 (11:40 +0930)
* scripttempl/elf.sc: Edit out __rela_iplt symbol assignments from
.rel sections, and __rel_iplt from .rela sections.

ld/ChangeLog
ld/scripttempl/elf.sc

index 0a8eb7260554f3aa3a9479c26d10c0987233be5c..a6e8d3c7c3b6743d5e1f1b5592befef28f66240b 100644 (file)
@@ -1,3 +1,8 @@
+2014-06-17  Alan Modra  <amodra@gmail.com>
+
+       * scripttempl/elf.sc: Edit out __rela_iplt symbol assignments from
+       .rel sections, and __rel_iplt from .rela sections.
+
 2014-06-12  Alan Modra  <amodra@gmail.com>
 
        Backport mainline patches
index e8126cbf31af6610cf63309b0f42acbe5687d0dc..6d0d13d8e7297ca12d64333e9b7a65a2afdc45a0 100644 (file)
@@ -410,13 +410,13 @@ cat >> ldscripts/dyntmp.$$ <<EOF
   .rel.dyn      ${RELOCATING-0} :
     {
 EOF
-sed -e '/^[    ]*[{}][         ]*$/d;/:[       ]*$/d;/\.rela\./d;s/^.*: { *\(.*\)}$/      \1/' $COMBRELOC >> ldscripts/dyntmp.$$
+sed -e '/^[    ]*[{}][         ]*$/d;/:[       ]*$/d;/\.rela\./d;/__rela_iplt_/d;s/^.*: { *\(.*\)}$/      \1/' $COMBRELOC >> ldscripts/dyntmp.$$
 cat >> ldscripts/dyntmp.$$ <<EOF
     }
   .rela.dyn     ${RELOCATING-0} :
     {
 EOF
-sed -e '/^[    ]*[{}][         ]*$/d;/:[       ]*$/d;/\.rel\./d;s/^.*: { *\(.*\)}/      \1/' $COMBRELOC >> ldscripts/dyntmp.$$
+sed -e '/^[    ]*[{}][         ]*$/d;/:[       ]*$/d;/\.rel\./d;/__rel_iplt_/d;s/^.*: { *\(.*\)}/      \1/' $COMBRELOC >> ldscripts/dyntmp.$$
 cat >> ldscripts/dyntmp.$$ <<EOF
     }
 EOF
@@ -446,10 +446,10 @@ emit_dyn()
     cat ldscripts/dyntmp.$$
   else
     if test -z "${NO_REL_RELOCS}"; then
-      sed -e '/^[      ]*\.rela\.[^}]*$/,/}/d' -e '/^[         ]*\.rela\./d' ldscripts/dyntmp.$$
+      sed -e '/^[      ]*\.rela\.[^}]*$/,/}/d;/^[      ]*\.rela\./d;/__rela_iplt_/d' ldscripts/dyntmp.$$
     fi
     if test -z "${NO_RELA_RELOCS}"; then
-      sed -e '/^[      ]*\.rel\.[^}]*$/,/}/d' -e '/^[  ]*\.rel\./d' ldscripts/dyntmp.$$
+      sed -e '/^[      ]*\.rel\.[^}]*$/,/}/d;/^[       ]*\.rel\./d;/__rel_iplt_/d' ldscripts/dyntmp.$$
     fi
   fi
   rm -f ldscripts/dyntmp.$$