--- "Lewin A.R.W. Edwards" <larwe@...> wrote:
> I wonder what the difference is, then. If I build a
> C project (at least,
> the projects I have around here - several of which
> are _very_
> complicated), I only get .rodata.
I searched the net a bit and the only thing I found
is that it could be a matter of gcc versions.
Apparently, gcc versions prior to 3.1.x didn't
generate .rodata.strx.y sections.
>
> > which is what I did the first time I compiled my
> > program and used only *(.rodata) in my linker
> command
> > file).
>
> Hmm. When I encountered this, the linker warned me
> that it was omitting
> sections. It did not silently discard them.
I just commented out my *(.rodata*) line from the
linker script of the project that has the file with a
.rodata.str1.4 section and the linker didn't give any
warnings. I'm using ld 2.12.
>
> --
> -- Lewin A.R.W. Edwards (http://www.zws.com/)
> Learn how to develop high-end embedded systems on a
> tight budget!
>
http://www.amazon.com/exec/obidos/ASIN/0750676094/zws-20
>
>
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/Message
Re: [lpc2100] More ld script questions..
2004-01-22 by Bogdan Marinescu
Attachments
- No local attachments were found for this message.