This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[RFA] Fix cut and paste error?



Daniel, I think you may have overlooked this when you copied this
code from elf32-mips.c?  The size of a struct elf_prpsinfo on i386
is 124 (not 128 as it is in the mips version).

Michael

2001-12-19  Michael Snyder  <msnyder@redhat.com>

	* elf32-i386.c (elf_i386_grok_psinfo): Fix probable copy-and-paste
	error: target is i386 (not mips), and size of descdata is 124
	(not 128).

Index: elf32-i386.c
===================================================================
RCS file: /cvs/src/src/bfd/elf32-i386.c,v
retrieving revision 1.61
diff -c -3 -p -r1.61 elf32-i386.c
*** elf32-i386.c	2001/12/17 00:52:35	1.61
--- elf32-i386.c	2001/12/19 22:34:06
*************** elf_i386_grok_psinfo (abfd, note)
*** 362,368 ****
        default:
  	return false;
  
!       case 128:		/* Linux/MIPS elf_prpsinfo */
  	elf_tdata (abfd)->core_program
  	 = _bfd_elfcore_strndup (abfd, note->descdata + 28, 16);
  	elf_tdata (abfd)->core_command
--- 362,368 ----
        default:
  	return false;
  
!       case 124:		/* Linux/i386 elf_prpsinfo */
  	elf_tdata (abfd)->core_program
  	 = _bfd_elfcore_strndup (abfd, note->descdata + 28, 16);
  	elf_tdata (abfd)->core_command


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]