diff options
author | Ian Lance Taylor <ian@airs.com> | 1997-06-18 23:02:58 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1997-06-18 23:02:58 +0000 |
commit | c4badc83ecfcb55d2824ef9165a4d0ef10f3161a (patch) | |
tree | 823623dd819b8bccb7c57ff340ed293909afbf0d /bfd/elflink.h | |
parent | 705ebd92394d7066086382187b36a86ec7dd4ed8 (diff) | |
download | gdb-c4badc83ecfcb55d2824ef9165a4d0ef10f3161a.zip gdb-c4badc83ecfcb55d2824ef9165a4d0ef10f3161a.tar.gz gdb-c4badc83ecfcb55d2824ef9165a4d0ef10f3161a.tar.bz2 |
revert last patch
Diffstat (limited to 'bfd/elflink.h')
-rw-r--r-- | bfd/elflink.h | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/bfd/elflink.h b/bfd/elflink.h index 09a7d8b..df74afe 100644 --- a/bfd/elflink.h +++ b/bfd/elflink.h @@ -741,7 +741,6 @@ elf_link_add_object_symbols (abfd, info) { Elf_Internal_Versym iver; int vernum; - boolean indirect; boolean override; if (ever != NULL) @@ -851,14 +850,9 @@ elf_link_add_object_symbols (abfd, info) if (h->root.type == bfd_link_hash_new) h->elf_link_hash_flags &=~ ELF_LINK_NON_ELF; - indirect = false; while (h->root.type == bfd_link_hash_indirect || h->root.type == bfd_link_hash_warning) - { - if (h->root.type == bfd_link_hash_indirect) - indirect = true; - h = (struct elf_link_hash_entry *) h->root.u.i.link; - } + h = (struct elf_link_hash_entry *) h->root.u.i.link; /* FIXME: There are too many cases here, and it's too confusing. This code needs to be reorganized somehow. */ @@ -1014,8 +1008,7 @@ elf_link_add_object_symbols (abfd, info) && (h->root.u.def.section->flags & SEC_ALLOC) != 0 && (h->root.u.def.section->flags & SEC_LOAD) == 0 && h->size > 0 - && h->type != STT_FUNC - && ! indirect) + && h->type != STT_FUNC) { /* It would be best if we could set the hash table entry to a common symbol, but we don't know what to use for |