This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: COLLECT_EXPORT_LIST
- To: David Edelsohn <dje at watson dot ibm dot com>
- Subject: Re: COLLECT_EXPORT_LIST
- From: Michael Meissner <meissner at cygnus dot com>
- Date: Mon, 12 Mar 2001 11:56:24 -0500
- Cc: Geoff Keating <geoffk at geoffk dot org>, Zack Weinberg <zackw at Stanford dot EDU>, gcc at gcc dot gnu dot org
- References: <geoffk@geoffk.org> <200103112101.QAA24602@mal-ach.watson.ibm.com>
On Sun, Mar 11, 2001 at 04:01:28PM -0500, David Edelsohn wrote:
> COLLECT_EXPORT_LIST no longer protects code that only is
> associated with export list issues specific to the AIX linker.
>
> It serves basically three functions: working around AIX linkers
> agressive garbage collection (which GNU ld targeted at AIX currently does
> not have), protecting the AIX init/fini processing (which the new GNU ld
> support now does have), and choosing AIX XCOFF processing of object files.
> The #ifndef CROSS_COMPILE is no longer entirely correct.
GNU ld does have suppport for aggresive garbage collection these days, though
whether the AIX target supports --gc-sections, I dunno. IIRC, under AIX, the
compiler always does the equivalent of -ffunction-sections and -fdata-sections
to allow the GC to work.
--
Michael Meissner, Red Hat, Inc. (GCC group)
PMB 198, 174 Littleton Road #3, Westford, Massachusetts 01886, USA
Work: meissner@redhat.com phone: +1 978-486-9304
Non-work: meissner@spectacle-pond.org fax: +1 978-692-4482