* elfcode.h (elf_bfd_final_link): If trying to generate a shared

object, warn and return false.
This commit is contained in:
Ian Lance Taylor 1994-06-16 19:30:49 +00:00
parent 3cc6bebb23
commit 0ff5d3a69a
2 changed files with 11 additions and 0 deletions

View File

@ -7,6 +7,9 @@ Thu Jun 16 14:25:22 1994 Eric Youngdale (ericy@cais.cais.com)
Thu Jun 16 14:23:46 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
* elfcode.h (elf_bfd_final_link): If trying to generate a shared
object, warn and return false.
* aoutx.h (NAME(aout,some_aout_object_p)): Accept BMAGIC objects
and treat them as OMAGIC.

View File

@ -5033,6 +5033,14 @@ elf_bfd_final_link (abfd, info)
Elf_Internal_Shdr *symtab_hdr;
Elf_Internal_Shdr *symstrtab_hdr;
if (info->shared)
{
fprintf (stderr,
"Generating ELF shared libraries is not yet supported\n");
bfd_set_error (bfd_error_invalid_operation);
return false;
}
dynobj = elf_hash_table (info)->dynobj;
finfo.info = info;