This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Cross-compiling from GNU/Linux to AIX
- To: Mark Mitchell <mark at codesourcery dot com>
- Subject: Re: Cross-compiling from GNU/Linux to AIX
- From: David Edelsohn <dje at watson dot ibm dot com>
- Date: Mon, 05 Feb 2001 12:53:29 -0500
- cc: gcc at gcc dot gnu dot org
>>>>> Mark Mitchell writes:
Mark> It doesn't work.
Mark> ../../gcc/collect2.c: In function `main':
Mark> ../../gcc/collect2.c:1451: `LD_FINI_SWITCH' undeclared (first use in this function)
Mark> ../../gcc/collect2.c:1451: (Each undeclared identifier is reported only once
Mark> ../../gcc/collect2.c:1451: for each function it appears in.)
Mark> I'm a bit confused as to what's the right solution.
Mark> On an AIX native build, xm-rs6000.h defines COLLECT_EXPORT_LIST, which
Mark> means we don't end up in this code. It seems to me that either
Mark> LD_INIT_SWITCH should not be defined in aix43.h if cross-compiling.
Mark> Does that sound right to you?
We discussed this before. The LD_INIT_SWITCH is correct. We need
to use some other test in collect2.c instead of COLLET_EXPORT_LIST.
David