public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Ian Lance Taylor <iant@google.com>
To: binutils@sourceware.org
Cc: richards@transitive.com
Subject: Re: [0/21] Add support for AIX 6
Date: Tue, 10 Mar 2009 14:13:00 -0000	[thread overview]
Message-ID: <m3vdqhh3fl.fsf@google.com> (raw)
In-Reply-To: <g4y6vd7a4x.fsf@richards-desktop.transitives.com> (Richard Sandiford's message of "Tue\, 10 Mar 2009 13\:58\:06 +0000")

Richard Sandiford <richards@transitive.com> writes:

> Now the AIX linker appears to apply something like --whole-archive
> semantics to _all_ archives.

That is correct.  The AIX linker uses the equivalent of --whole-archive,
and then uses garbage collection to discarded unreferenced csects.

My attitude when I did the original GNU ld port to AIX was that GNU ld
should, as much as possible, present the same interface on every host.
I figured that the main reason that people would use GNU ld for AIX
would be because they were cross-compiling to AIX, and that the most
likely scenario there was a program which ran on many different hosts.
I felt that it would be more convenient in that scenario if they did not
have to invoke the linker differently on different hosts.  This shows up
most drastically on AIX, but we also see it in, e.g., the default for
--export-dynamic, which is different in the native linkers on Solaris
and System V, but which is always the same for GNU ld.

I don't feel all that strongly about this then or now, but that was my
reasoning and it still seems valid to me.

Ian

  parent reply	other threads:[~2009-03-10 14:13 UTC|newest]

Thread overview: 52+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-10 13:58 Richard Sandiford
2009-03-10 14:00 ` [1/21] Fix handling of archive tests Richard Sandiford
2009-03-12 16:15   ` Nick Clifton
2009-03-10 14:01 ` [2/21] Add support for AIX 6 Richard Sandiford
2009-03-12 16:17   ` Nick Clifton
2009-03-10 14:04 ` [3/21] Keep .text, .data and .bss on AIX Richard Sandiford
2009-03-12 16:36   ` Nick Clifton
2009-03-13  9:43     ` Richard Sandiford
2009-03-13 11:42       ` Nick Clifton
2009-03-14  9:42         ` Richard Sandiford
2009-03-10 14:05 ` [4/21] Fix o_cputype for 64-bit XCOFF objects Richard Sandiford
2009-03-12 16:38   ` Nick Clifton
2009-03-10 14:07 ` [5/21] Set config.dynamic_link for AIX Richard Sandiford
2009-03-12 16:39   ` Nick Clifton
2009-03-10 14:08 ` [6/21] XCOFF R_POS and R_NEG relocations against absolute symbols Richard Sandiford
2009-03-13 14:33   ` Nick Clifton
2009-03-10 14:13 ` [7/21] Handle relative branches to absolute addresses Richard Sandiford
2009-03-13 14:37   ` Nick Clifton
2009-03-10 14:13 ` Ian Lance Taylor [this message]
2009-03-10 15:22   ` [0/21] Add support for AIX 6 Richard Sandiford
2009-03-10 15:45   ` Michael Haubenwallner
2009-03-10 16:30     ` Ian Lance Taylor
2009-03-10 14:15 ` [8/21] bfd_install_relocation strikes again Richard Sandiford
2009-03-13 14:48   ` Nick Clifton
2009-03-10 14:22 ` [9/21] Implicitly import undefined symbols Richard Sandiford
2009-03-13 14:55   ` Nick Clifton
2009-03-10 14:25 ` [10/21] Fix the csect handling of XTY_ER symbols Richard Sandiford
2009-03-13 14:57   ` Nick Clifton
2009-03-10 14:29 ` [11/21] Cope with TOCs bigger than 32k, and other TC0 fixes Richard Sandiford
2009-03-13 14:59   ` Nick Clifton
2009-03-10 14:34 ` [12/21] Trim XCOFF symbols earlier in the link process Richard Sandiford
2009-03-13 15:01   ` Nick Clifton
2009-03-10 14:36 ` [13/21] Fix counting of line-number entries Richard Sandiford
2009-03-13 15:04   ` Nick Clifton
2009-03-10 14:38 ` [14/21] Treat absolute imports as XTY_ER/XMC_XO Richard Sandiford
2009-03-13 15:11   ` Nick Clifton
2009-03-10 14:40 ` [15/21] Avoid writing duplicate XCOFF symbols Richard Sandiford
2009-03-13 15:12   ` Nick Clifton
2009-03-10 14:45 ` [16/21] Add AIX weak support Richard Sandiford
2009-03-13 15:17   ` Nick Clifton
2009-03-10 14:46 ` [17/21] Suppor garbage collection without an entry point Richard Sandiford
2009-03-13 15:22   ` Nick Clifton
2009-03-10 14:49 ` [18/21] Add -bexpall and -bexpfull Richard Sandiford
2009-03-13 15:21   ` Nick Clifton
2009-03-10 14:50 ` [19/21] Give imported function descriptors class XMC_DS Richard Sandiford
2009-03-13 15:24   ` Nick Clifton
2009-03-10 14:51 ` [20/21] Fix free() of in-use memory when handling archives Richard Sandiford
2009-03-13 15:24   ` Nick Clifton
2009-03-10 14:53 ` [21/21] GAS testsuite fix Richard Sandiford
2009-03-13 15:25   ` Nick Clifton
2009-03-10 18:18 [0/21] Add support for AIX 6 David Edelsohn
2009-03-11  9:37 ` Michael Haubenwallner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3vdqhh3fl.fsf@google.com \
    --to=iant@google.com \
    --cc=binutils@sourceware.org \
    --cc=richards@transitive.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).