diff options
author | Ian Lance Taylor <ian@airs.com> | 1995-03-27 16:11:22 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1995-03-27 16:11:22 +0000 |
commit | a735edad1393fd7db3780de5edd82108e471b125 (patch) | |
tree | 9eb44dd054baed5ab48af6245a5dd5a20690d0c2 /ld/ldmain.c | |
parent | b34b32e7f91f07a66bf936b7050ac6fbdd69a239 (diff) | |
download | gdb-a735edad1393fd7db3780de5edd82108e471b125.zip gdb-a735edad1393fd7db3780de5edd82108e471b125.tar.gz gdb-a735edad1393fd7db3780de5edd82108e471b125.tar.bz2 |
* ldmain.c (main): Revert patch of March 10, since the SVR4 linker
does mark shared libraries as executable.
Diffstat (limited to 'ld/ldmain.c')
-rw-r--r-- | ld/ldmain.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ld/ldmain.c b/ld/ldmain.c index 9b507b1..e6bf23d 100644 --- a/ld/ldmain.c +++ b/ld/ldmain.c @@ -23,6 +23,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #include "sysdep.h" #include <stdio.h> #include "libiberty.h" +#include "progress.h" #include "bfdlink.h" #include "config.h" @@ -155,6 +156,8 @@ main (argc, argv) program_name = argv[0]; xmalloc_set_program_name (program_name); + START_PROGRESS (program_name, 0); + bfd_init (); xatexit (remove_output); @@ -298,7 +301,7 @@ main (argc, argv) } } - if (link_info.relocateable || link_info.shared) + if (link_info.relocateable) output_bfd->flags &= ~EXEC_P; else output_bfd->flags |= EXEC_P; @@ -329,6 +332,8 @@ main (argc, argv) einfo ("%F%B: final close failed: %E\n", output_bfd); } + END_PROGRESS (program_name); + if (config.stats) { extern char **environ; |