This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: a question about link script
- From: "Martin Bian" <martin at utstar dot com>
- To: Nick Clifton <nickc at redhat dot com>, "binutils at sources dot redhat dot com" <binutils at sources dot redhat dot com>
- Date: Thu, 30 Jan 2003 9:48:2 +0800
- Subject: Re: a question about link script
Hi, Nick,
>Try creating a separate entry for b.o in your linker script like this:
>
> SECTIONS
> {
> . = 0
> .text {
> b.o(.text)
> *(.text)
> }
>
> ....
>
>This will force the .text section from the b.o file to be placed at
>the start of the .text section in the executable, regardless of where
>b.o was specified on the linker command line.
>
It works. I have used it for days. And I think it is the easiest way for me now. But when I
change the project, I have to replace 'b.o' with new file name. I wish I need do nothing with link script when I change project. Maybe it is impossable in now version of ld.
Thank you for discussing these with me.
Best regards,
Martin Bian
martin@utstar.com
2003-01-30