* elfcode.h (elf_bfd_final_link): If trying to generate a shared
authorIan Lance Taylor <ian@airs.com>
Thu, 16 Jun 1994 19:30:49 +0000 (19:30 +0000)
committerIan Lance Taylor <ian@airs.com>
Thu, 16 Jun 1994 19:30:49 +0000 (19:30 +0000)
object, warn and return false.

bfd/ChangeLog
bfd/elfcode.h

index 7645573..6adce91 100644 (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.
 
index e471b56..79b85a3 100644 (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;