mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-05 23:26:51 +08:00
* ldmain.c (main): Don't set EXEC_P if link_info.shared is set.
This commit is contained in:
@ -1,5 +1,7 @@
|
|||||||
Fri Mar 10 14:43:48 1995 Ian Lance Taylor <ian@cygnus.com>
|
Fri Mar 10 14:43:48 1995 Ian Lance Taylor <ian@cygnus.com>
|
||||||
|
|
||||||
|
* ldmain.c (main): Don't set EXEC_P if link_info.shared is set.
|
||||||
|
|
||||||
* ldlex.l: Return -lFILENAME as the token LNAME.
|
* ldlex.l: Return -lFILENAME as the token LNAME.
|
||||||
* ldgram.y: Add token LNAME.
|
* ldgram.y: Add token LNAME.
|
||||||
(input_list): Treat LNAME like NAME, but pass it to
|
(input_list): Treat LNAME like NAME, but pass it to
|
||||||
|
13
ld/ldmain.c
13
ld/ldmain.c
@ -228,7 +228,16 @@ main (argc, argv)
|
|||||||
if (isfile)
|
if (isfile)
|
||||||
ldfile_open_command_file (s);
|
ldfile_open_command_file (s);
|
||||||
else
|
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;
|
parser_input = input_script;
|
||||||
yyparse ();
|
yyparse ();
|
||||||
}
|
}
|
||||||
@ -285,7 +294,7 @@ main (argc, argv)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (link_info.relocateable)
|
if (link_info.relocateable || link_info.shared)
|
||||||
output_bfd->flags &= ~EXEC_P;
|
output_bfd->flags &= ~EXEC_P;
|
||||||
else
|
else
|
||||||
output_bfd->flags |= EXEC_P;
|
output_bfd->flags |= EXEC_P;
|
||||||
|
Reference in New Issue
Block a user