* default linker script in ld
@ 2010-03-12 20:06 Alan Nilsson
2010-03-16 15:01 ` Ian Lance Taylor
0 siblings, 1 reply; 2+ messages in thread
From: Alan Nilsson @ 2010-03-12 20:06 UTC (permalink / raw)
To: gcc-help
Is there a way to build/config ld to use a custom script for the 'default' linker script?
I want to setup ld so I do not have to use the -T option since all my builds require a custom script.
alan
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: default linker script in ld
2010-03-12 20:06 default linker script in ld Alan Nilsson
@ 2010-03-16 15:01 ` Ian Lance Taylor
0 siblings, 0 replies; 2+ messages in thread
From: Ian Lance Taylor @ 2010-03-16 15:01 UTC (permalink / raw)
To: Alan Nilsson; +Cc: gcc-help
Alan Nilsson <alan.n@mac.com> writes:
> Is there a way to build/config ld to use a custom script for the
> 'default' linker script?
Well, yes, you can edit the linker sources. It's a little
complicated, as the default linker script is generated. See the files
in ld/scripttempl. The linker script template is selected by the
SCRIPT_NAME variable in the emulparams file. The emulparams file is
selected by the targ_emul variable in ld/configure.tgt.
> I want to setup ld so I do not have to use the -T option since all
> my builds require a custom script.
I would just use a shell script to compile code.
Ian
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-03-16 14:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-12 20:06 default linker script in ld Alan Nilsson
2010-03-16 15:01 ` Ian Lance Taylor
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).