public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* RFC: Remove output_target in ld
@ 2006-05-22  8:45 H. J. Lu
  2006-05-22  8:49 ` H. J. Lu
  0 siblings, 1 reply; 3+ messages in thread
From: H. J. Lu @ 2006-05-22  8:45 UTC (permalink / raw)
  To: binutils

ld has both output_target and ld_emulation, which has a target_name
field. Both of them are supposed to specify the output target name.
However, they aren't consistent, especially when a linker supports
different endians. Why do we need output_target? Can we set
ld_emulation correctly and use ld_emulation->target_name to replace
output_target. Also ld supports the GNUTARGET enviroment variable.
But we don't use it to set ld_emulation. I'd like to modify ld to
make ld_emulation consistent:

1. Initialize ld_emulation properly with
   a. GNUTARGET.
   b. -m EMULATION.
   and correct endian, based on -EL/-BL.
2. Use ld_emulation->target_name to identify the output target.


H.J.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-05-22  3:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-22  8:45 RFC: Remove output_target in ld H. J. Lu
2006-05-22  8:49 ` H. J. Lu
2006-05-22  8:57   ` 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).