linker script variables

Markus Duft markus.duft@salomon.at
Wed Jan 13 07:22:00 GMT 2010


Alan Modra wrote:
> On Tue, Jan 12, 2010 at 02:37:30PM +0100, Markus Duft wrote:
>> opened script file ./Platforms/ia32/uTachyon.ld
>> ...
>> opened script file Platforms/ia32/uTachyon.ld
> 
> You've doubled up your script file.  So you really have
> 
>         .text : { 
>                 uTachyonCodeStart = .;
>                 *(.text) 
>                 uTachyonCodeStart = .;
>                 *(.text) 
>         }
> etc.
> 
> Input .text matches the first *(.text) so that's where it goes, while
> the symbol gets the last assignment.
> 

Thanks! That was of course the right pointer. i realized that my make
rule was fishy: the linker script was one of the dependencies of the
rule, and i put the object files on the command line with $^ - this put
the linker script on the command line too a second time (os normal
linker input) - argh...

So sorry for the noise, and thanks for the help :)

Cheers, Markus



More information about the Binutils mailing list