forked from Imagelibrary/binutils-gdb
PR binutils/3146
* readelf.c (dump_relocations): Check for a NULL value in rtype before using it.
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
2006-09-01 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
|
PR binutils/3146
|
||||||
|
* readelf.c (dump_relocations): Check for a NULL value in rtype
|
||||||
|
before using it.
|
||||||
|
|
||||||
2006-08-21 Pedro Alves <pedro_alves@portugalmail.pt>
|
2006-08-21 Pedro Alves <pedro_alves@portugalmail.pt>
|
||||||
|
|
||||||
* configure.in: Split arm-pe and arm-wince-pe. Build dlltool
|
* configure.in: Split arm-pe and arm-wince-pe. Build dlltool
|
||||||
|
|||||||
@@ -1148,6 +1148,7 @@ dump_relocations (FILE *file,
|
|||||||
printf (do_wide ? "%-22.22s" : "%-17.17s", rtype);
|
printf (do_wide ? "%-22.22s" : "%-17.17s", rtype);
|
||||||
|
|
||||||
if (elf_header.e_machine == EM_ALPHA
|
if (elf_header.e_machine == EM_ALPHA
|
||||||
|
&& rtype != NULL
|
||||||
&& streq (rtype, "R_ALPHA_LITUSE")
|
&& streq (rtype, "R_ALPHA_LITUSE")
|
||||||
&& is_rela)
|
&& is_rela)
|
||||||
{
|
{
|
||||||
@@ -1246,7 +1247,9 @@ dump_relocations (FILE *file,
|
|||||||
print_vma (rels[i].r_addend, LONG_HEX);
|
print_vma (rels[i].r_addend, LONG_HEX);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (elf_header.e_machine == EM_SPARCV9 && streq (rtype, "R_SPARC_OLO10"))
|
if (elf_header.e_machine == EM_SPARCV9
|
||||||
|
&& rtype != NULL
|
||||||
|
&& streq (rtype, "R_SPARC_OLO10"))
|
||||||
printf (" + %lx", (unsigned long) ELF64_R_TYPE_DATA (info));
|
printf (" + %lx", (unsigned long) ELF64_R_TYPE_DATA (info));
|
||||||
|
|
||||||
putchar ('\n');
|
putchar ('\n');
|
||||||
|
|||||||
Reference in New Issue
Block a user