This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]