RFC: PATCH: ld/12942: Plugin not handling correctly resolution of COMDATs.
H.J. Lu
hjl.tools@gmail.com
Tue Jul 12 00:09:00 GMT 2011
On Mon, Jul 11, 2011 at 12:58 PM, Mike Frysinger <vapier@gentoo.org> wrote:
> On Saturday, July 09, 2011 02:21:26 Alan Modra wrote:
>> 2011-07-09 H.J. Lu <hongjiu.lu@intel.com>
>>
>> PR ld/12942
>> * elf-bfd.h (_bfd_elf_section_already_linked): Replace
>> "asection *" with "struct already_linked *".
>
> this sometimes causes a warning as the header for this struct isnt included,
> and a forward decl isnt provided.
> In file included from interp.c:69:
> ../../bfd/elf-bfd.h:1801: warning: ‘struct already_linked’ declared inside
> parameter list
> ../../bfd/elf-bfd.h:1801: warning: its scope is only this definition or
> declaration, which is probably not what you want
> -mike
>
Just add
struct already_linked;
to elf-bfd.h.
--
H.J.
More information about the Binutils
mailing list