This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: powerpc-eabi and -msdata
- To: jtc at redback dot com
- Subject: Re: powerpc-eabi and -msdata
- From: Geoff Keating <geoffk at geoffk dot org>
- Date: Fri, 15 Jun 2001 13:44:29 -0700
- CC: binutils at sourceware dot cygnus dot com
- References: <5mr8wlityu.fsf@jtc.redback.com>
- Reply-to: Geoff Keating <geoffk at redhat dot com>
> 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>