diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2005-09-08 14:24:22 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2005-09-08 14:24:22 +0000 |
commit | 92fd189de17fc72329b06babf4b9a49881dba792 (patch) | |
tree | 4ed297fb16a38919308be36ec158e8e6a7b80b48 /bfd/elflink.c | |
parent | 3eb17e6bd2ee08d2c08644bc141cd29005f6a266 (diff) | |
download | gdb-92fd189de17fc72329b06babf4b9a49881dba792.zip gdb-92fd189de17fc72329b06babf4b9a49881dba792.tar.gz gdb-92fd189de17fc72329b06babf4b9a49881dba792.tar.bz2 |
2005-09-08 H.J. Lu <hongjiu.lu@intel.com>
PR ld/1263
* elflink.c (elf_link_add_object_symbols): Abort for
--just-symbols on DSO.
Diffstat (limited to 'bfd/elflink.c')
-rw-r--r-- | bfd/elflink.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/bfd/elflink.c b/bfd/elflink.c index b748516..45ff665 100644 --- a/bfd/elflink.c +++ b/bfd/elflink.c @@ -3291,11 +3291,10 @@ elf_link_add_object_symbols (bfd *abfd, struct bfd_link_info *info) int ret; /* ld --just-symbols and dynamic objects don't mix very well. - Test for --just-symbols by looking at info set up by - _bfd_elf_link_just_syms. */ + ld shouldn't allow it. */ if ((s = abfd->sections) != NULL && s->sec_info_type == ELF_INFO_TYPE_JUST_SYMS) - goto error_return; + abort (); /* If this dynamic lib was specified on the command line with --as-needed in effect, then we don't want to add a DT_NEEDED |