forked from pool/binutils
b914186841
- warning-symbol-sections.patch: don't clobber warning sections from shared libraries OBS-URL: https://build.opensuse.org/request/show/183973 OBS-URL: https://build.opensuse.org/package/show/devel:gcc/binutils?expand=0&rev=137
21 lines
668 B
Diff
21 lines
668 B
Diff
2013-07-20 Alan Modra <amodra@gmail.com>
|
|
|
|
PR ld/15762
|
|
PR ld/12761
|
|
* elflink.c (elf_link_add_object_symbols): Don't clobber
|
|
.gnu.warning.symbol sections when shared.
|
|
|
|
Index: binutils-2.23.2/bfd/elflink.c
|
|
===================================================================
|
|
--- binutils-2.23.2.orig/bfd/elflink.c
|
|
+++ binutils-2.23.2/bfd/elflink.c
|
|
@@ -3468,7 +3468,7 @@ elf_link_add_object_symbols (bfd *abfd,
|
|
FALSE, bed->collect, NULL)))
|
|
goto error_return;
|
|
|
|
- if (! info->relocatable)
|
|
+ if (!info->relocatable && !info->shared)
|
|
{
|
|
/* Clobber the section size so that the warning does
|
|
not get copied into the output file. */
|