This is the mail archive of the binutils@sourceware.org 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] |
The attached patch fixes an error on PPC when objects contain invalid relocation types. Previously, we would happily "return" a NULL reloc_howto_type from ppc_elf_info_to_howto for an invalid relocation type. Doing this would cause problems later down the line when unsuspecting code would attempt to peek at members of NULL. The fix is to check to see whether we were asked to describe an invalid relocation type and, if so, simply use R_PPC_NONE and issue an error message. This is similar to what the i386 backend already does. Compiled and regtested on powerpc64-unknown-linux-gnu with no regressions. OK? -Nathan bfd/ 2007-06-25 Nathan Froyd <froydnj@codesourcery.com> * elf32-ppc.c (ppc_elf_info_to_howto): Check for invalid relocation types.
Attachment:
ppc-reloc-checking.patch
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |