From a735edad1393fd7db3780de5edd82108e471b125 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Mon, 27 Mar 1995 16:11:22 +0000 Subject: [PATCH] * ldmain.c (main): Revert patch of March 10, since the SVR4 linker does mark shared libraries as executable. --- ld/ChangeLog | 5 +++++ ld/ldmain.c | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/ld/ChangeLog b/ld/ChangeLog index bcf65e83e7b..c4cbd7bc26c 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +Mon Mar 27 11:10:08 1995 Ian Lance Taylor + + * ldmain.c (main): Revert patch of March 10, since the SVR4 linker + does mark shared libraries as executable. + Tue Mar 21 15:15:38 1995 Ian Lance Taylor * ldlang.c (lang_common): Change power to int. Pass larger values diff --git a/ld/ldmain.c b/ld/ldmain.c index 9b507b13ce9..e6bf23dbdd5 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 #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; -- 2.30.2