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: replacing the default linker script


On Wed, Mar 06, 2013 at 11:30:57AM -0800, Ian Lance Taylor wrote:
> On Wed, Mar 6, 2013 at 10:52 AM, Trevor Woerner <twoerner@gmail.com> wrote:
> > I was hoping that if I replaced one of them with my script that the
> > new script would get used by default. But that doesn't seem to be the
> > case.
> 
> No, it doesn't work that way.  The default script is compiled into the
> linker so that it doesn't have to waste time opening a file.  The
> presence of the default scripts in the file system is, essentially,
> documentation.

Yes, scripts are mostly compiled in, but grep for COMPILE_IN.  With a
little work it should be possible to disable compiled in scripts.
You'd need to change ld/genscripts.sh to not set the var for native
targets if it is already set, and put "COMPILE_IN=" in your emulparams
file.

-- 
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]