aboutsummaryrefslogtreecommitdiff
path: root/bfd/coff-i386.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2007-07-27 01:15:27 +0000
committerMichael Snyder <msnyder@vmware.com>2007-07-27 01:15:27 +0000
commit507f5898089ebcd95d297538eebb04521ca81a2e (patch)
treef54feaef99a661a1c6064bf4eb457882e0cd67f2 /bfd/coff-i386.c
parenta6626e8c3089ee949fcb177dc0a3253a8c3b9c58 (diff)
downloadgdb-507f5898089ebcd95d297538eebb04521ca81a2e.zip
gdb-507f5898089ebcd95d297538eebb04521ca81a2e.tar.gz
gdb-507f5898089ebcd95d297538eebb04521ca81a2e.tar.bz2
2007-07-26 Michael Snyder <msnyder@access-company.com>
* coff-i386.c (coff_i386_rtype_to_howto): Guard against null.
Diffstat (limited to 'bfd/coff-i386.c')
-rw-r--r--bfd/coff-i386.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/bfd/coff-i386.c b/bfd/coff-i386.c
index 47c041d..e5c6a6b 100644
--- a/bfd/coff-i386.c
+++ b/bfd/coff-i386.c
@@ -518,7 +518,8 @@ coff_i386_rtype_to_howto (abfd, sec, rel, h, sym, addendp)
*addendp -= pe_data(sec->output_section->owner)->pe_opthdr.ImageBase;
}
- if (rel->r_type == R_SECREL32)
+ BFD_ASSERT (sym != NULL);
+ if (rel->r_type == R_SECREL32 && sym != NULL)
{
bfd_vma osect_vma;