mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-07-01 01:45:51 +08:00
Check R_X86_64_standard for unrecognized relocation
* elf64-x86-64.c (elf_x86_64_relocate_section): Check R_X86_64_standard instead of R_X86_64_max for unrecognized relocation.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
2012-12-21 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
|
* elf64-x86-64.c (elf_x86_64_relocate_section): Check
|
||||||
|
R_X86_64_standard instead of R_X86_64_max for unrecognized
|
||||||
|
relocation.
|
||||||
|
|
||||||
2012-12-21 H.J. Lu <hongjiu.lu@intel.com>
|
2012-12-21 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
PR ld/14980
|
PR ld/14980
|
||||||
|
@ -3207,8 +3207,11 @@ elf_x86_64_relocate_section (bfd *output_bfd,
|
|||||||
|| r_type == (int) R_X86_64_GNU_VTENTRY)
|
|| r_type == (int) R_X86_64_GNU_VTENTRY)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (r_type >= R_X86_64_max)
|
if (r_type >= (int) R_X86_64_standard)
|
||||||
{
|
{
|
||||||
|
(*_bfd_error_handler)
|
||||||
|
(_("%B: unrecognized relocation (0x%x) in section `%A'"),
|
||||||
|
input_bfd, input_section, r_type);
|
||||||
bfd_set_error (bfd_error_bad_value);
|
bfd_set_error (bfd_error_bad_value);
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user