This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: .bss section marked as contents, load, alloc, data
- From: "Jafa" <jafa at silicondust dot com>
- To: <binutils at sources dot redhat dot com>
- Date: Tue, 6 Apr 2004 14:57:22 -0700
- Subject: Re: .bss section marked as contents, load, alloc, data
Yep... checked libgcc.a, libgdb.a, and every .o file in the application...
all report ALLOC.
I guess I will have to run gdb on the linker :-(
Nick
On Tue, Apr 06, 2004 at 02:21:42PM -0700, Nick Kelsey wrote:
> Hi guys,
>
> I am having a problem whereby all our elf files have the .bss section
marked
> as loadable:
>
> 10 .bss 000016a4 0010158c 0010158c 0000258c 2**4
> CONTENTS, ALLOC, LOAD, DATA
>
> I ran objdump -h on all .o files being linked and all show:
>
> 2 .bss 00000000 00000000 00000000 00000034 2**0
> ALLOC
>
> Which looks correct.
>
> Something must be making the linker think that it is loadable... but I
have
> no idea what.
>
> Any advice as to how to trace the problem would be appreciated.
Are you sure you checked every library, archive, or system startup file
being linked? I had a bad .sbss in crt0.o recently...
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer