+2018-09-22 Alan Modra <amodra@gmail.com>
+
+ * readelf.c (apply_relocations): Don't return FALSE for warnings.
+
2018-09-20 Nelson Chu <nelson.chu1990@gmail.com>
* testsuite/binutils-all/objcopy.exp: Set the unsupported reloc number
{
Elf_Internal_Shdr * relsec;
unsigned char * end = start + size;
- bfd_boolean res = TRUE;
if (relocs_return != NULL)
{
warn (_("unable to apply unsupported reloc type %d to section %s\n"),
reloc_type, printable_section_name (filedata, section));
prev_reloc = reloc_type;
- res = FALSE;
continue;
}
warn (_("skipping invalid relocation offset 0x%lx in section %s\n"),
(unsigned long) rp->r_offset,
printable_section_name (filedata, section));
- res = FALSE;
continue;
}
{
warn (_("skipping invalid relocation symbol index 0x%lx in section %s\n"),
sym_index, printable_section_name (filedata, section));
- res = FALSE;
continue;
}
sym = symtab + sym_index;
get_symbol_type (filedata, ELF_ST_TYPE (sym->st_info)),
printable_section_name (filedata, relsec),
(long int)(rp - relocs));
- res = FALSE;
continue;
}
break;
}
- return res;
+ return TRUE;
}
#ifdef SUPPORT_DISASSEMBLY