This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: AIX & shared libstdc++
- To: pooh at msu dot ru
- Subject: Re: AIX & shared libstdc++
- From: Ian Lance Taylor <ian at cygnus dot com>
- Date: Thu, 9 Oct 1997 14:15:18 -0400
- CC: jason at cygnus dot com, egcs at cygnus dot com
Date: Thu, 09 Oct 1997 20:01:20 +0400
From: Andrey Slepuhin <pooh@msu.ru>
3) Even the simple test program failed to run with message about exec
format error due to bad text alignment.
It seems to me that problem is not with egcs but with gnu ld which
generates
invalid executables. Any help is appreciated.
You're right; the GNU linker doesn't work on AIX 4.2. It's possible
that the appended patch to ld/emultempl/aix.em will fix the immediate
problem. There may be other problems.
Ian
Index: aix.em
===================================================================
RCS file: /cvs/cvsfiles/devo/ld/emultempl/aix.em,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -r1.20 -r1.21
--- aix.em 1997/06/16 16:56:24 1.20
+++ aix.em 1997/09/04 16:43:35 1.21
@@ -361,8 +361,8 @@
exp_nameop (NAME, "."),
exp_intop (0xfff)));
t = exp_binop ('&',
- exp_binop ('+', t, exp_intop (7)),
- exp_intop (~ (bfd_vma) 7));
+ exp_binop ('+', t, exp_intop (31)),
+ exp_intop (~ (bfd_vma) 31));
lang_section_start (".data", t);
}
break;
@@ -382,8 +382,8 @@
exp_intop (val),
exp_nameop (SIZEOF_HEADERS, NULL));
t = exp_binop ('&',
- exp_binop ('+', t, exp_intop (7)),
- exp_intop (~ (bfd_vma) 7));
+ exp_binop ('+', t, exp_intop (31)),
+ exp_intop (~ (bfd_vma) 31));
lang_section_start (".text", t);
}
break;