PATCH: PR ld/12761: .gnu.warning.* doesn't work when building shared library

Alan Modra amodra@gmail.com
Tue May 17 01:51:00 GMT 2011


On Mon, May 16, 2011 at 12:05:12PM -0700, H.J. Lu wrote:
> @@ -3423,7 +3423,7 @@ elf_link_add_object_symbols (bfd *abfd, struct bfd_link_info *info)
>       .gnu.warning.SYMBOL are treated as warning symbols for the given
>       symbol.  This differs from .gnu.warning sections, which generate
>       warnings when they are included in an output file.  */
> -  if (info->executable)
> +  if (info->executable || info->shared)
>      {
>        asection *s;
>  

Can one of the old-timers comment on this?  rev 1.1 of bfd/elflink.h
specifically excluded shared libs..

1.1          (rth      03-May-99):   if (! info->shared)

-- 
Alan Modra
Australia Development Lab, IBM



More information about the Binutils mailing list