From bd4dd3d01152ac0cbb2a1c7219e143a463964fc5 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Mon, 21 Oct 1996 14:56:17 +0000 Subject: [PATCH] * linker.c (default_indirect_link_order): Print an error message when attempting to do a relocateable link with different object file formats, rather than calling abort. --- bfd/ChangeLog | 6 ++++++ bfd/linker.c | 6 +++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 0607f73a0c1..e5e41d2252a 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,9 @@ +Mon Oct 21 10:54:58 1996 Ian Lance Taylor + + * linker.c (default_indirect_link_order): Print an error message + when attempting to do a relocateable link with different object + file formats, rather than calling abort. + start-sanitize-m32r Thu Oct 17 10:43:29 1996 Doug Evans diff --git a/bfd/linker.c b/bfd/linker.c index 14afce6604a..1b48f199fe3 100644 --- a/bfd/linker.c +++ b/bfd/linker.c @@ -2661,7 +2661,11 @@ default_indirect_link_order (output_bfd, info, output_section, link_order, because somebody is attempting to link together different types of object files. Handling this case correctly is difficult, and sometimes impossible. */ - abort (); + (*_bfd_error_handler) + ("Attempt to do relocateable link with %s input and %s output", + bfd_get_target (input_bfd), bfd_get_target (output_bfd)); + bfd_set_error (bfd_error_wrong_format); + return false; } if (! generic_linker) -- 2.30.2