[PATCH] Fix recognition of NT_PRXFPREG notes

Mark Kettenis kettenis@chello.nl
Sat Oct 19 06:53:00 GMT 2002


Alan Modra approved this patch back in july, but then I went on
vacation and forgot all about it.  Checked in now.

Mark

Index: ChangeLog
from  Mark Kettenis  <kettenis@gnu.org>

	* elf.c (elfcore_grok_note): Fix recognition on NT_PRXFPREG notes.

Index: elf.c
===================================================================
RCS file: /cvs/src/src/bfd/elf.c,v
retrieving revision 1.163
diff -u -p -r1.163 elf.c
--- elf.c 28 Sep 2002 03:25:56 -0000 1.163
+++ elf.c 19 Oct 2002 13:48:17 -0000
@@ -6803,8 +6803,8 @@ elfcore_grok_note (abfd, note)
 #endif
 
     case NT_PRXFPREG:		/* Linux SSE extension */
-      if (note->namesz == 5
-	  && ! strcmp (note->namedata, "LINUX"))
+      if (note->namesz == 6
+	  && strcmp (note->namedata, "LINUX") == 0)
 	return elfcore_grok_prxfpreg (abfd, note);
       else
 	return true;



More information about the Binutils mailing list