This is the mail archive of the gcc-patches@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]
Other format: [Raw text]

Re: [PATCH] Fix PR target/16304: AIX 4.x forward reference proble


> 	Binutils mostly works on AIX 4.3.3 and sort of works with AIX 5.1
> -- it works well enough to bootstrap the Cygnus/RH GCC release with which
> it was developed.  It does not create completely correct AIX executables
> or shared libraries.  Gas intentionally lies that it supports weak symbols
> on AIX, which confuses current GCC expecting true support.  Gas and Gld do
> not have any support for new AIX features, such as AIX weak symbols.

I did some testing on 3.4 and 4.0 with binutils.  The lack of support
for weak symbols can be worked around with the following:

--- config/rs6000/aix43.h       13 Apr 2003 17:51:05 -0000      1.30
+++ config/rs6000/aix43.h       25 Sep 2004 23:15:43 -0000
@@ -187,3 +187,6 @@ do {
                \

#undef LD_INIT_SWITCH
#define LD_INIT_SWITCH "-binitfini"
+
+/* AIX 4.3 doesn't support weak.  */
+#undef ASM_WEAKEN_DECL

Possibly undefining HAVE_GAS_WEAK is also required on the head.

> 	I have not tried Gas on AIX 4.3.3 with GCC 3.4, but I do not think
> that it will work correctly without modification.  If Gas and Gld worked
> correctly on AIX, I would be happy to use it.  The problem always has been
> and continues to be maintenance and support.

As I recall, the test results were more or less the same as those
using the IBM tools.  I think I may have posted the results around the
end of last October.

Dave
-- 
J. David Anglin                                  dave.anglin@nrc-cnrc.gc.ca
National Research Council of Canada              (613) 990-0752 (FAX: 952-6602)


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