This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]