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


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.

-- 
Alan Modra
Australia Development Lab, IBM


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