From 0ff5d3a69a7d61d3cd1550c0c96238c9bbaff197 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Thu, 16 Jun 1994 19:30:49 +0000 Subject: [PATCH] * elfcode.h (elf_bfd_final_link): If trying to generate a shared object, warn and return false. --- bfd/ChangeLog | 3 +++ bfd/elfcode.h | 8 ++++++++ 2 files changed, 11 insertions(+) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 76455732ee..6adce91441 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -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. diff --git a/bfd/elfcode.h b/bfd/elfcode.h index e471b56c71..79b85a39ad 100644 --- a/bfd/elfcode.h +++ b/bfd/elfcode.h @@ -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;