public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* ld: orthogonal functionality?
@ 2001-09-07  8:56 John Reiser
  2001-09-10 10:43 ` Nick Clifton
  0 siblings, 1 reply; 11+ messages in thread
From: John Reiser @ 2001-09-07  8:56 UTC (permalink / raw)
  To: binutils

In ld for ELF, I'd like to control these features separately and
independently, both from the command line and from an input script:

0. output type ET_EXEC, ET_DYN, ET_REL
1. warn (alt: not) if undefined symbols are referenced
2. force non-zero exit status if undefined symbols are referenced
   (alt: undefineds have no effect on exit status)
3. inhibit output (alt: not) if undefined symbols are referenced
4. lazy relocation (delay as long as possible) vs. eager relocation
   (reduce strength [symbol==>section==>segment==><done>] as soon
   as possible)
5. allocate Common blocks (alt: not)

Current flags such as -dc, -r, -Bsymbolic, -shared, --no-undefined,
--noinhibit-exec provide only partial, non-orthogonal coverage
of the cases.  Lately I've run into several situations where I
could not figure out how to get what I want, even though the
underlying features are implemented for some other combination.

Please comment, suggest, cite known pitfalls, etc.  Thank you.

-- 
John Reiser, jreiser@BitWagon.com

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

end of thread, other threads:[~2001-09-29  5:58 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-09-07  8:56 ld: orthogonal functionality? John Reiser
2001-09-10 10:43 ` Nick Clifton
2001-09-19  9:07   ` [PATCH] " John Reiser
2001-09-19  9:13     ` H . J . Lu
2001-09-19 10:53       ` John Reiser
2001-09-19 12:14       ` John Reiser
2001-09-24 23:38       ` Where can I add "-lm" flag to compile tc-*.c jw c
2001-09-25 11:55   ` optionally postpone assignment of Common John Reiser
2001-09-25 19:13     ` Alan Modra
2001-09-25 21:13       ` John Reiser
2001-09-29  5:58         ` Alan Modra

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).