]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blobdiff - binutils/patches/binutils-2.24-weak-sym-merge.patch0
binutils: Update to 2.24
[people/ms/ipfire-3.x.git] / binutils / patches / binutils-2.24-weak-sym-merge.patch0
diff --git a/binutils/patches/binutils-2.24-weak-sym-merge.patch0 b/binutils/patches/binutils-2.24-weak-sym-merge.patch0
new file mode 100644 (file)
index 0000000..0625f0d
--- /dev/null
@@ -0,0 +1,22 @@
+*** ../binutils-2.24.orig/bfd/elflink.c        2014-08-15 14:12:59.933394436 +0100
+--- bfd/elflink.c      2014-08-15 14:40:54.787075416 +0100
+*************** _bfd_elf_merge_symbol (bfd *abfd,
+*** 1437,1443 ****
+        if (!(oldbfd != NULL
+           && (oldbfd->flags & BFD_PLUGIN) != 0
+           && (abfd->flags & BFD_PLUGIN) == 0))
+!      *skip = TRUE;
+  
+        /* Merge st_other.  If the symbol already has a dynamic index,
+        but visibility says it should not be visible, turn it into a
+--- 1437,1446 ----
+        if (!(oldbfd != NULL
+           && (oldbfd->flags & BFD_PLUGIN) != 0
+           && (abfd->flags & BFD_PLUGIN) == 0))
+!      {
+!        newdef = FALSE;
+!        *skip = TRUE;
+!      }
+  
+        /* Merge st_other.  If the symbol already has a dynamic index,
+        but visibility says it should not be visible, turn it into a