diff options
author | David Edelsohn <edelsohn@gnu.org> | 1999-10-12 21:13:13 +0000 |
---|---|---|
committer | David Edelsohn <dje@gcc.gnu.org> | 1999-10-12 17:13:13 -0400 |
commit | 72c06938c80c0607127d069139b4072475d5a228 (patch) | |
tree | 0d0f901ff72360d15907e508b1db7c91f9f58acb | |
parent | e780ca1d84e96015e8e0dc8c5e59f7faa5fa9c3e (diff) | |
download | gcc-72c06938c80c0607127d069139b4072475d5a228.zip gcc-72c06938c80c0607127d069139b4072475d5a228.tar.gz gcc-72c06938c80c0607127d069139b4072475d5a228.tar.bz2 |
* collect2.c (main): Do prelimnary link on AIX if rflag.
From-SVN: r29927
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/collect2.c | 5 |
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f331b87..d609d0f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +Tue Oct 12 17:09:38 1999 David Edelsohn <edelsohn@gnu.org> + + * collect2.c (main): Do prelimnary link on AIX if rflag. + Tue Oct 12 09:45:19 1999 Jonathan Larmour <jlarmour@cygnus.co.uk> * config/rs6000/eabi-ctors.c (__do_global_ctors): Run through diff --git a/gcc/collect2.c b/gcc/collect2.c index de2976e..6b36144 100644 --- a/gcc/collect2.c +++ b/gcc/collect2.c @@ -1362,7 +1362,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 @@ -1374,6 +1374,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); |