aboutsummaryrefslogtreecommitdiff
path: root/ld/ldmain.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1995-03-10 20:26:49 +0000
committerIan Lance Taylor <ian@airs.com>1995-03-10 20:26:49 +0000
commit22c41f00b6ba3863424e69e667c9f1355f2273ed (patch)
treeac11922c4281737f1aca78e3eef87963b24043df /ld/ldmain.c
parent01bc8f35b54955e9ddbb673b43961aa436336a2e (diff)
downloadgdb-22c41f00b6ba3863424e69e667c9f1355f2273ed.zip
gdb-22c41f00b6ba3863424e69e667c9f1355f2273ed.tar.gz
gdb-22c41f00b6ba3863424e69e667c9f1355f2273ed.tar.bz2
* ldmain.c (main): Don't set EXEC_P if link_info.shared is set.
Diffstat (limited to 'ld/ldmain.c')
-rw-r--r--ld/ldmain.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/ld/ldmain.c b/ld/ldmain.c
index 091f776..5c534a4 100644
--- a/ld/ldmain.c
+++ b/ld/ldmain.c
@@ -228,7 +228,16 @@ main (argc, argv)
if (isfile)
ldfile_open_command_file (s);
else
- lex_redirect (s);
+ {
+ if (trace_file_tries)
+ {
+ info_msg ("using internal linker script:\n");
+ info_msg ("==================================================\n");
+ info_msg (s);
+ info_msg ("\n==================================================\n");
+ }
+ lex_redirect (s);
+ }
parser_input = input_script;
yyparse ();
}
@@ -285,7 +294,7 @@ main (argc, argv)
}
}
- if (link_info.relocateable)
+ if (link_info.relocateable || link_info.shared)
output_bfd->flags &= ~EXEC_P;
else
output_bfd->flags |= EXEC_P;