From: David Edelsohn Date: Tue, 12 Oct 1999 21:16:52 +0000 (+0000) Subject: * collect2.c (main): Do preliminary link on AIX if rflag. X-Git-Tag: releases/gcc-2.95.2~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5f04f321f2ad3157b9f57cc30a514dc0323b6361;p=thirdparty%2Fgcc.git * collect2.c (main): Do preliminary link on AIX if rflag. From-SVN: r29928 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ad31a5ecec69..18a6d0b1a5bd 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +Tue Oct 12 17:09:38 1999 David Edelsohn + + * collect2.c (main): Do preliminary link on AIX if rflag. + Mon Oct 11 23:35:19 1999 Jeffrey A Law (law@cygnus.com) Fri Sep 3 09:14:32 1999 Marc Espie diff --git a/gcc/collect2.c b/gcc/collect2.c index 121ad3927045..e5d6452e19cb 100644 --- a/gcc/collect2.c +++ b/gcc/collect2.c @@ -1515,7 +1515,7 @@ main (argc, argv) /* On AIX we do this later. */ #ifndef COLLECT_EXPORT_LIST - do_tlink (ld1_argv, object_lst); + do_tlink (ld1_argv, object_lst); #endif /* If -r or they will be run via some other method, do not build the @@ -1527,6 +1527,9 @@ main (argc, argv) ) { #ifdef COLLECT_EXPORT_LIST + /* Do the link we avoided above if we are exiting. */ + do_tlink (ld1_argv, object_lst); + /* But make sure we delete the export file we may have created. */ if (export_file != 0 && export_file[0]) maybe_unlink (export_file);