aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-i386.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1994-10-21 23:40:59 +0000
committerIan Lance Taylor <ian@airs.com>1994-10-21 23:40:59 +0000
commitf93fc389959e35e2e99248b981d7ffb0cd148375 (patch)
treeca3f85394d9b7d2189789fec153a2fe31a7a4ed5 /bfd/elf32-i386.c
parent0da41f7d77939ae7c0594d80f0597132a35efadd (diff)
downloadgdb-f93fc389959e35e2e99248b981d7ffb0cd148375.zip
gdb-f93fc389959e35e2e99248b981d7ffb0cd148375.tar.gz
gdb-f93fc389959e35e2e99248b981d7ffb0cd148375.tar.bz2
fix BFD_ASSERT calls
Diffstat (limited to 'bfd/elf32-i386.c')
-rw-r--r--bfd/elf32-i386.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bfd/elf32-i386.c b/bfd/elf32-i386.c
index 18e3a43..14f4b71 100644
--- a/bfd/elf32-i386.c
+++ b/bfd/elf32-i386.c
@@ -608,9 +608,6 @@ elf_i386_adjust_dynamic_symbol (info, h)
/* Make sure we know what is going on here. */
BFD_ASSERT (dynobj != NULL
- && h->root.type == bfd_link_hash_defined
- && (bfd_get_flavour (h->root.u.def.section->owner)
- == bfd_target_elf_flavour)
&& ((h->elf_link_hash_flags & ELF_LINK_HASH_NEEDS_PLT)
|| ((h->elf_link_hash_flags
& ELF_LINK_HASH_DEF_DYNAMIC) != 0
@@ -620,6 +617,9 @@ elf_i386_adjust_dynamic_symbol (info, h)
& ELF_LINK_HASH_DEF_REGULAR) == 0
&& (elf_elfheader (h->root.u.def.section->owner)->e_type
== ET_DYN)
+ && h->root.type == bfd_link_hash_defined
+ && (bfd_get_flavour (h->root.u.def.section->owner)
+ == bfd_target_elf_flavour)
&& h->root.u.def.section->output_section == NULL)));
/* If this is a function, put it in the procedure linkage table. We