From 507f5898089ebcd95d297538eebb04521ca81a2e Mon Sep 17 00:00:00 2001 From: Michael Snyder Date: Fri, 27 Jul 2007 01:15:27 +0000 Subject: [PATCH] 2007-07-26 Michael Snyder * coff-i386.c (coff_i386_rtype_to_howto): Guard against null. --- bfd/ChangeLog | 4 +++- bfd/coff-i386.c | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 2cf4d1f93d1..31f0087e159 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,4 +1,6 @@ -2007-07-26 Michael Snyder +2007-07-26 Michael Snyder + + * coff-i386.c (coff_i386_rtype_to_howto): Guard against null. * linker.c (bfd_section_already_linked_table_insert): Change return type from void to boolean. Return FALSE on failure. diff --git a/bfd/coff-i386.c b/bfd/coff-i386.c index 47c041d3c0c..e5c6a6b6bd3 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; -- 2.30.2