From 312b768e2f1579346e7ffe978202fda06cb37224 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Mon, 23 Dec 2002 10:45:03 +0000 Subject: 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. --- ld/ldlang.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ld/ldlang.c') diff --git a/ld/ldlang.c b/ld/ldlang.c index 66b4b13..9565a63 100644 --- a/ld/ldlang.c +++ b/ld/ldlang.c @@ -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 -- cgit v1.1