This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: powerpc-eabi and -msdata
> 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>