]> git.pld-linux.org Git - packages/binutils.git/commitdiff
- fix PR ld/3666: comdat/linkonce symbol visibility merging.
authorPaweł Sikora <pluto@pld-linux.org>
Wed, 6 Dec 2006 15:37:37 +0000 (15:37 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    binutils-pr3666.patch -> 1.1

binutils-pr3666.patch [new file with mode: 0644]

diff --git a/binutils-pr3666.patch b/binutils-pr3666.patch
new file mode 100644 (file)
index 0000000..8110adf
--- /dev/null
@@ -0,0 +1,23 @@
+2006-12-06  H.J. Lu <hjl@gnu.org>
+
+       PR ld/3666
+       * elflink.c (elf_link_add_object_symbols): Keep symbol
+       visibility for symbols from discarded section.
+       
+--- binutils/bfd/elflink.c.merge       2006-12-06 06:43:24.000000000 -0800
++++ binutils/bfd/elflink.c     2006-12-06 07:10:18.000000000 -0800
+@@ -3702,12 +3702,10 @@ elf_link_add_object_symbols (bfd *abfd, 
+           sec = bfd_abs_section_ptr;
+         else if (sec->kept_section)
+           {
+-            /* Symbols from discarded section are undefined, and have
+-               default visibility.  */
++            /* Symbols from discarded section are undefined.  We keep
++               its visibility.  */
+             sec = bfd_und_section_ptr;
+             isym->st_shndx = SHN_UNDEF;
+-            isym->st_other = (STV_DEFAULT
+-                              | (isym->st_other & ~ ELF_ST_VISIBILITY (-1)));
+           }
+         else if ((abfd->flags & (EXEC_P | DYNAMIC)) != 0)
+           value -= sec->vma;
This page took 0.050619 seconds and 4 git commands to generate.