This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]