* 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.
This commit is contained in:
Ian Lance Taylor 1996-10-21 14:56:17 +00:00
parent 972256e712
commit bd4dd3d011
2 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,9 @@
Mon Oct 21 10:54:58 1996 Ian Lance Taylor <ian@cygnus.com>
* 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 <dje@canuck.cygnus.com>

View File

@ -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)