This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Patches for egcs-971016 on AIX
- To: egcs at cygnus dot com
- Subject: Patches for egcs-971016 on AIX
- From: Andrey Slepuhin <pooh at msu dot ru>
- Date: Tue, 21 Oct 1997 16:52:26 +0400
- Organization: Moscow State University, Network Management Department
Hi,
I just prepared patches for egcs-971016 on AIX 4.2 with native ld
(patches are
attached). These patches solve the following problems:
1) Automatic generation of shared objects using native ld (by explicitly
defining
exported symbols in separate file). Now you can simply type:
g++ -shared -o <shared_object_name> obj1 obj2 ...
2) Now you don't need to pass -bnoquiet option to linker when object
files are
compiled using -frepo option. I added one more check for undefined
symbols
into tlink.c.
I tested these patches only on AIX 4.2, but they must work for any 4.*
version,
because I didn't use any AIX 4.2 features. Note, that patch for shared
objects
is only a workaround, because it would be better to generate export list
directly
by collect2 (it is already parses object files to export global
ctrs/dtrs; sorry,
I don't know xcoff format and I can't make appropriate changes myself).
Andrey Slepuhin,
Moscow State University
aix_patches.diff.gz