aboutsummaryrefslogtreecommitdiff
path: root/bfd/elfcode.h
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 /bfd/elfcode.h
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.
Diffstat (limited to 'bfd/elfcode.h')
-rw-r--r--bfd/elfcode.h8
1 files changed, 8 insertions, 0 deletions
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;