target/5842: [AIX] g++/collect2 extracts all static objects from archives
dje@gcc.gnu.org
dje@gcc.gnu.org
Wed Mar 13 13:45:00 GMT 2002
Synopsis: [AIX] g++/collect2 extracts all static objects from archives
Responsible-Changed-From-To: unassigned->dje
Responsible-Changed-By: dje
Responsible-Changed-When: Wed Mar 13 13:45:07 2002
Responsible-Changed-Why:
AIX
State-Changed-From-To: open->closed
State-Changed-By: dje
State-Changed-When: Wed Mar 13 13:45:07 2002
State-Changed-Why:
The report is not correct. collect2 does not add all objects
to the export list. collect2 does search all archives for
static contsructors and destructors and adds those to the
export list. Those constructors and destructors may pull
in more dependencies. Because the AIX linker garbage
collects symbols, if the symbol is not scanned and referenced
early (e.g., ctor/dtor), it may be omitted from the
executable.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=5842
More information about the Gcc-bugs
mailing list