Patches for egcs-971016 on AIX
Andrey Slepuhin
pooh@msu.ru
Tue Oct 21 05:52:00 GMT 1997
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: aix_patches.diff.gz
Type: application/x-gzip
Size: 1976 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/19971021/b5da026b/attachment.bin>
More information about the Gcc
mailing list