powerpc-eabi and -msdata
Andreas Schwab
schwab@suse.de
Sun Jun 17 13:04:00 GMT 2001
Geoff Keating <geoffk@geoffk.org> writes:
|> > 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;
You can't do that, since void is not a complete type, and there cannot be
any objects of type void.
Andreas.
--
Andreas Schwab "And now for something
SuSE Labs completely different."
Andreas.Schwab@suse.de
SuSE GmbH, Schanzäckerstr. 10, D-90443 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
More information about the Binutils
mailing list