From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrey Slepuhin To: David Edelsohn Cc: egcs@cygnus.com Subject: Re: egcs on AIX: native or gnu ld? Date: Mon, 20 Oct 1997 02:42:00 -0000 Message-id: <344B2747.579D24EF@msu.ru> References: <9710192145.AA33534@rios1.watson.ibm.com> X-SW-Source: 1997-10/msg00864.html David Edelsohn wrote: > These GLOBAL__DI/DD symbols exist for each library. collect2 and > gnu ld collect all of the static constructors to be run at program startup > -- both symbols within the program and symbols within any libraries. The > GLOBAL__DI/DD symbols are present and duplicated in the executable because > they are present in each library as a defining instance, but they never > are referenced because collect2 has created a separate list of all of the > constructor symbols for the executable. Well, GLOBAL__DI/DD symbols are automatically exported by collect2. But what about __eh_ symbols, which are defined for each object file and are global bss symbols? Should I export them or they can be omitted? I'm now looking into collect2 source to find appropriate place for patching. I see that collect2 exports some symbols by direct parsing of object files. As I don't know XCOFF file format I'll try to create separate export list by calling a script. This is not a good solution so it should be fixed later. Well, when I obtain working version I'll send a patch. Andrey.