public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [patch] coff-i386, guard against null
@ 2007-07-26  0:54 msnyder
  2007-07-26  2:20 ` H.J. Lu
  2007-07-26 13:08 ` Alan Modra
  0 siblings, 2 replies; 10+ messages in thread
From: msnyder @ 2007-07-26  0:54 UTC (permalink / raw)
  To: binutils

[-- Attachment #1: Type: text/plain, Size: 90 bytes --]

Other code in this function checks to see if sym is null.
If it's null here, it'll fail.


[-- Attachment #2: howto.txt --]
[-- Type: text/plain, Size: 821 bytes --]

2007-07-25  Michael Snyder  <msnyder@access-company.com>

	* coff-i386.c (coff_i386_rtype_to_howto): Guard against null.

Index: coff-i386.c
===================================================================
RCS file: /cvs/src/src/bfd/coff-i386.c,v
retrieving revision 1.26
diff -p -r1.26 coff-i386.c
*** coff-i386.c	3 Jul 2007 14:26:39 -0000	1.26
--- coff-i386.c	26 Jul 2007 00:18:04 -0000
*************** coff_i386_rtype_to_howto (abfd, sec, rel
*** 518,524 ****
        *addendp -= pe_data(sec->output_section->owner)->pe_opthdr.ImageBase;
      }
  
!   if (rel->r_type == R_SECREL32)
      {
        bfd_vma osect_vma;
  
--- 518,524 ----
        *addendp -= pe_data(sec->output_section->owner)->pe_opthdr.ImageBase;
      }
  
!   if (rel->r_type == R_SECREL32 && sym != NULL)
      {
        bfd_vma osect_vma;
  

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2007-07-27  1:16 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-26  0:54 [patch] coff-i386, guard against null msnyder
2007-07-26  2:20 ` H.J. Lu
2007-07-26 12:34   ` Daniel Jacobowitz
2007-07-26 13:46     ` H.J. Lu
2007-07-26 18:54       ` msnyder
2007-07-26 20:01         ` H.J. Lu
2007-07-26 23:52           ` msnyder
2007-07-27  1:04             ` H.J. Lu
2007-07-27  1:42               ` msnyder
2007-07-26 13:08 ` Alan Modra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).