This is the mail archive of the binutils@sourceware.org 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: linker script variables


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


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