mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-24 12:35:55 +08:00
revise PE IMAGE_SCN_LNK_NRELOC_OVFL test
* coffcode.h (coff_set_alignment_hook): Test that the resulting reloc count is not less than 0xffff.
This commit is contained in:
parent
82d1f134cc
commit
29daccc9f3
@ -1951,7 +1951,7 @@ coff_set_alignment_hook (bfd * abfd ATTRIBUTE_UNUSED,
|
||||
coff_swap_reloc_in (abfd, &dst, &n);
|
||||
if (bfd_seek (abfd, oldpos, 0) != 0)
|
||||
return;
|
||||
if (n.r_vaddr < 0xffff)
|
||||
if (n.r_vaddr < 0x10000)
|
||||
{
|
||||
_bfd_error_handler (_("%pB: overflow reloc count too small"), abfd);
|
||||
bfd_set_error (bfd_error_bad_value);
|
||||
|
Loading…
Reference in New Issue
Block a user