diff options
author | Ian Lance Taylor <ian@airs.com> | 1996-10-21 14:56:17 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1996-10-21 14:56:17 +0000 |
commit | bd4dd3d01152ac0cbb2a1c7219e143a463964fc5 (patch) | |
tree | 77d685209a02b98c7de33d18500a822b9c5d1a35 /bfd/linker.c | |
parent | 972256e712d8fa041244f75ec25c4deba13df787 (diff) | |
download | gdb-bd4dd3d01152ac0cbb2a1c7219e143a463964fc5.zip gdb-bd4dd3d01152ac0cbb2a1c7219e143a463964fc5.tar.gz gdb-bd4dd3d01152ac0cbb2a1c7219e143a463964fc5.tar.bz2 |
* 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.
Diffstat (limited to 'bfd/linker.c')
-rw-r--r-- | bfd/linker.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bfd/linker.c b/bfd/linker.c index 14afce6..1b48f19 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) |