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]

Re: powerpc-eabi and -msdata


> From: jtc@redback.com (J.T. Conklin)
> Date: 15 Jun 2001 09:33:13 -0700

> I suspect that, because "__bss_start" and "end" are declared as small
> globals, gcc assumes that they will be located in the sdata/sbss or
> sdata2/sbss2 sections.  The link fails because they are not.
> 
> What's the best way to solve this?  The reason I access __bss_start
> and end is for clearing bss in C.  I guess I could move this to my
> startup code without too much trouble.

Declare them in C as

void __bss_start;

and similarly.

-- 
- Geoffrey Keating <geoffk@geoffk.org>


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