This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: PATCH: PR ld/12761: .gnu.warning.* doesn't work when building shared library
- From: Alan Modra <amodra at gmail dot com>
- To: "H.J. Lu" <hjl dot tools at gmail dot com>
- Cc: binutils at sourceware dot org
- Date: Tue, 17 May 2011 11:20:38 +0930
- Subject: Re: PATCH: PR ld/12761: .gnu.warning.* doesn't work when building shared library
- References: <20110516190512.GA10653@intel.com>
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