Change linker's default behaviour - it will now reject binary files whoes

architecture it does not recognise, unless it has explicitly told to accept
them.
This commit is contained in:
Nick Clifton
2002-12-23 10:45:03 +00:00
parent 8745eafadc
commit 312b768e2f
13 changed files with 85 additions and 19 deletions

View File

@ -3699,7 +3699,8 @@ lang_check ()
file = file->input_statement.next)
{
input_bfd = file->input_statement.the_bfd;
compatible = bfd_arch_get_compatible (input_bfd, output_bfd);
compatible = bfd_arch_get_compatible (input_bfd, output_bfd,
command_line.accept_unknown_input_arch);
/* In general it is not possible to perform a relocatable
link between differing object formats when the input