aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1995-03-27 16:11:22 +0000
committerIan Lance Taylor <ian@airs.com>1995-03-27 16:11:22 +0000
commita735edad1393fd7db3780de5edd82108e471b125 (patch)
tree9eb44dd054baed5ab48af6245a5dd5a20690d0c2 /ld
parentb34b32e7f91f07a66bf936b7050ac6fbdd69a239 (diff)
downloadgdb-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')
-rw-r--r--ld/ChangeLog5
-rw-r--r--ld/ldmain.c7
2 files changed, 11 insertions, 1 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index bcf65e8..c4cbd7b 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,8 @@
+Mon Mar 27 11:10:08 1995 Ian Lance Taylor <ian@cygnus.com>
+
+ * 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 <ian@cygnus.com>
* ldlang.c (lang_common): Change power to int. Pass larger values
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;