diff options
author | Alan Modra <amodra@gmail.com> | 2002-10-16 00:57:39 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2002-10-16 00:57:39 +0000 |
commit | 366f2964afea873fe9e9e81c9d0ab2435e05ef7d (patch) | |
tree | 4228e6ad628918299f5cbb5cb45ad184eb033092 /bfd | |
parent | 90c9df8594fbcf8313f112808c89cdb1843a6842 (diff) | |
download | gdb-366f2964afea873fe9e9e81c9d0ab2435e05ef7d.zip gdb-366f2964afea873fe9e9e81c9d0ab2435e05ef7d.tar.gz gdb-366f2964afea873fe9e9e81c9d0ab2435e05ef7d.tar.bz2 |
* elflink.h (elf_link_add_object_symbols): Error out on dynamic objects
loaded with --just-symbols.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 3 | ||||
-rw-r--r-- | bfd/elflink.h | 7 |
2 files changed, 10 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 7f9625b..f04a747 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,5 +1,8 @@ 2002-10-16 Alan Modra <amodra@bigpond.net.au> + * elflink.h (elf_link_add_object_symbols): Error out on dynamic objects + loaded with --just-symbols. + * elf32-i386qnx.c (TARGET_LITTLE_NAME): Define. * elf32-ppcqnx.c (TARGET_LITTLE_NAME, TARGET_BIG_NAME): Define. * elf32-shqnx.c (TARGET_LITTLE_NAME, TARGET_BIG_NAME): Define. diff --git a/bfd/elflink.h b/bfd/elflink.h index 23ea241..5e2acbd 100644 --- a/bfd/elflink.h +++ b/bfd/elflink.h @@ -1299,6 +1299,13 @@ elf_link_add_object_symbols (abfd, info) bfd_size_type oldsize; bfd_size_type strindex; + /* 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. */ + if ((s = abfd->sections) != NULL + && elf_section_data (s)->sec_info_type == ELF_INFO_TYPE_JUST_SYMS) + goto error_return; + /* Find the name to use in a DT_NEEDED entry that refers to this object. If the object has a DT_SONAME entry, we use it. Otherwise, if the generic linker stuck something in |