powerpc-eabi and -msdata

Geoff Keating geoffk@geoffk.org
Sun Jun 17 13:31:00 GMT 2001


> From: Andreas Schwab <schwab@suse.de>
> Date: 17 Jun 2001 19:32:55 +0200

> |> > 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;
> 
> You can't do that, since void is not a complete type, and there cannot be
> any objects of type void.

Sorry, I meant 'declare them in GCC as...'

This is a GCC extension for declaring labels that do not correspond to
any object.  Other compilers may not have similar extensions, in which
case you're probably stuck.

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



More information about the Binutils mailing list