This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: bogus "ignoring changed section type" warning
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Jan Beulich <JBeulich at novell dot com>
- Cc: binutils at sourceware dot org
- Date: Fri, 7 Aug 2009 10:21:09 +0930
- Subject: Re: bogus "ignoring changed section type" warning
- References: <4A7B066E020000780000E661@vpn.id2.novell.com>
On Thu, Aug 06, 2009 at 03:35:58PM +0100, Jan Beulich wrote:
> Isn't this warning rather odd for code like this:
>
> .section .init.rodata,"a"
> .section .init.rodata,"a",@progbits
>
> especially since with just the first directive, the section ends up being
> progbits anyway (due to elf_fake_sections() deriving the type from the
> section flags)?
Yes, there ought to be a warning on the first directive rather than on
the second one.
> Wouldn't it hence make sense to guess an unspecified
> section type from the flags right away,
Probably.
--
Alan Modra
Australia Development Lab, IBM