aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1994-06-16 19:30:49 +0000
committerIan Lance Taylor <ian@airs.com>1994-06-16 19:30:49 +0000
commit0ff5d3a69a7d61d3cd1550c0c96238c9bbaff197 (patch)
tree522657367f1dac16f3c1a8db2099e9f487e315cd
parent3cc6bebb235f0ffb17c60f111064d6b59e39c386 (diff)
downloadgdb-0ff5d3a69a7d61d3cd1550c0c96238c9bbaff197.zip
gdb-0ff5d3a69a7d61d3cd1550c0c96238c9bbaff197.tar.gz
gdb-0ff5d3a69a7d61d3cd1550c0c96238c9bbaff197.tar.bz2
* elfcode.h (elf_bfd_final_link): If trying to generate a shared
object, warn and return false.
-rw-r--r--bfd/ChangeLog3
-rw-r--r--bfd/elfcode.h8
2 files changed, 11 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 7645573..6adce91 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 e471b56..79b85a3 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;