This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: PROGBITS warning on .bss
Joel Sherrill <joel.sherrill@OARcorp.com> writes:
> On 04/25/2010 01:46 PM, Dave Korn wrote:
>> On 25/04/2010 19:17, Ian Lance Taylor wrote:
>>
>>> Joel Sherrill<joel.sherrill@> writes:
>>>
>>>
>>>> The mips rtems BSPs are getting this warning
>>>> when linking every executable:
>>>>
>>>> ..../mips-rtems4.10/bin/ld: warning: section `.bss' type changed to PROGBITS
>>>>
>>> That's odd. It implies that some object has a .bss section marked as
>>> PROGBITS rather than NOBITS.
>>>
>> I guess a first step is to start looking at section flags in the input
>> objects and seeing if maybe something in the CRT or BSP got built wrong, or
>> perhaps has some inline assembler that uses a .section directive incorrectly.
>>
>>
> I looked through the assembler that was in RTEMS (not newlib)
> and didn't even see any .bss sections. What command should I
> use to look at the .o and what am I looking for?
Use readelf -S to look at the sections and look for the .bss section.
It should always be NOBITS, never PROGBITS. (If it is always NOBITS,
then I don't know what is causing the above warning.)
Ian