This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libgcc/60939] AIX: exceptions not caught when calling function via pointer
- From: "zoltan at hidvegi dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 21 Mar 2015 00:25:46 +0000
- Subject: [Bug libgcc/60939] AIX: exceptions not caught when calling function via pointer
- Auto-submitted: auto-generated
- References: <bug-60939-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=60939
--- Comment #8 from Zoltan Hidvegi <zoltan at hidvegi dot com> ---
How about using -bkeepfile: for all linked .o objects, that would create a very
similar semantics to other platforms, all .o objects are included, and only
objects that resolve undefined symbols would be included from .a files. This
would be a fix for the current bugreport, since it juse uses two .o files, and
one is collected away, but not completely, only in the first link pass, not in
the second link pass, due to the export file I guess. Certainly using -bexpall
is not a good idea.