powerpc-eabi and -msdata

Geoff Keating geoffk@geoffk.org
Fri Jun 15 13:28:00 GMT 2001


> 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>



More information about the Binutils mailing list