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:
parent
8745eafadc
commit
312b768e2f
13 changed files with 85 additions and 19 deletions
|
@ -377,7 +377,8 @@ main (argc, argv)
|
|||
|
||||
assert (bfd_get_flavour (outbfd) == bfd_target_nlm_flavour);
|
||||
|
||||
if (bfd_arch_get_compatible (inbfd, outbfd) == NULL)
|
||||
/* XXX: Should we accept the unknown bfd format here ? */
|
||||
if (bfd_arch_get_compatible (inbfd, outbfd, TRUE) == NULL)
|
||||
non_fatal (_("warning: input and output formats are not compatible"));
|
||||
|
||||
/* Move the values read from the command file into outbfd. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue