This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: COLLECT_EXPORT_LIST


On Fri, Mar 09, 2001 at 06:44:19PM -0800, Zack Weinberg wrote:
> What's it do?  It's defined only in xm-rs6000.h, has effects only in
> collect2.c (but just about everywhere, there), and *appears* to be AIX
> specific.  If so, it ought to be in an xm-aix.h or xm_defines lists.
> However, there's some evidence that other rs6000-based OS's use the
> same linker model.
> 
> Any clues would be appreciated.

The original rs6000 machine description was for AIX, and having aix*.h files is
a newer invention.  So you will often times find stuff in rs6000.h that should
be aix*.h, or even worse, stuff in rs6000.h that is then #undef'ed and
redefined in sysv.h, which is the principal other strain (Linux, eABI).  David
and Geoff are attempting to retrofit this, but I suspect it was overlooked.  I
don't remember the exact semantics of the AIX linker any more, but I think it
needed a list of things that the library exports and it would complain if a
reference to something not defined in the current object files or the export
files for the shared libraries.

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]