public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "dje at watson dot ibm dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/13878] Uncaught exception on AIX with shared libraries Date: Wed, 03 Mar 2004 22:54:00 -0000 [thread overview] Message-ID: <20040303225413.1477.qmail@sources.redhat.com> (raw) In-Reply-To: <20040127083113.13878.joerg.richter@pdv-fs.de> ------- Additional Comments From dje at watson dot ibm dot com 2004-03-03 22:54 ------- Subject: Re: Uncaught exception on AIX with shared libraries Can you try the appended patch that disables exporting _GLOBAL_* symbols in AIX shared libraries? Thanks, David Index: collect2.c =================================================================== RCS file: /cvs/gcc/gcc/gcc/collect2.c,v retrieving revision 1.160 diff -c -p -r1.160 collect2.c *** collect2.c 21 Jan 2004 20:39:52 -0000 1.160 --- collect2.c 3 Mar 2004 22:38:31 -0000 *************** main (int argc, char **argv) *** 1398,1407 **** --- 1398,1409 ---- if (! exports.first) *ld2++ = concat ("-bE:", export_file, NULL); + #ifndef LD_INIT_SWITCH add_to_list (&exports, initname); add_to_list (&exports, fininame); add_to_list (&exports, "_GLOBAL__DI"); add_to_list (&exports, "_GLOBAL__DD"); + #endif exportf = fopen (export_file, "w"); if (exportf == (FILE *) 0) fatal_perror ("fopen %s", export_file); *************** scan_prog_file (const char *prog_name, e *** 2720,2726 **** if (! is_shared) add_to_list (&constructors, name); #ifdef COLLECT_EXPORT_LIST ! if (which_pass == PASS_OBJ) add_to_list (&exports, name); #endif break; --- 2722,2728 ---- if (! is_shared) add_to_list (&constructors, name); #ifdef COLLECT_EXPORT_LIST ! if (!shared_obj && which_pass == PASS_OBJ) add_to_list (&exports, name); #endif break; *************** scan_prog_file (const char *prog_name, e *** 2729,2735 **** if (! is_shared) add_to_list (&destructors, name); #ifdef COLLECT_EXPORT_LIST ! if (which_pass == PASS_OBJ) add_to_list (&exports, name); #endif break; --- 2731,2737 ---- if (! is_shared) add_to_list (&destructors, name); #ifdef COLLECT_EXPORT_LIST ! if (!shared_obj && which_pass == PASS_OBJ) add_to_list (&exports, name); #endif break; *************** scan_prog_file (const char *prog_name, e *** 2754,2760 **** if (! is_shared) add_to_list (&frame_tables, name); #ifdef COLLECT_EXPORT_LIST ! if (which_pass == PASS_OBJ) add_to_list (&exports, name); #endif break; --- 2756,2762 ---- if (! is_shared) add_to_list (&frame_tables, name); #ifdef COLLECT_EXPORT_LIST ! if (!shared_obj && which_pass == PASS_OBJ) add_to_list (&exports, name); #endif break; -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13878
next prev parent reply other threads:[~2004-03-03 22:54 UTC|newest] Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top 2004-01-27 8:31 [Bug c++/13878] New: " joerg dot richter at pdv-fs dot de 2004-01-31 0:43 ` [Bug c++/13878] " dhazeghi at yahoo dot com 2004-02-01 2:52 ` dje at watson dot ibm dot com 2004-02-01 10:26 ` joerg dot richter at pdv-fs dot de 2004-02-21 19:12 ` greed at pobox dot com 2004-03-01 21:01 ` smethells at llnl dot gov 2004-03-03 20:52 ` ajd at gentrack dot com 2004-03-03 22:50 ` dje at gcc dot gnu dot org 2004-03-03 22:51 ` dje at gcc dot gnu dot org 2004-03-03 22:54 ` dje at watson dot ibm dot com [this message] 2004-03-06 20:55 ` dje at gcc dot gnu dot org 2004-03-06 23:31 ` pinskia at gcc dot gnu dot org 2004-03-07 22:37 ` dje at gcc dot gnu dot org 2005-05-31 12:54 ` nagaraj_hayyal at satyam dot com
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20040303225413.1477.qmail@sources.redhat.com \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).