[binutils-gdb] revise PE IMAGE_SCN_LNK_NRELOC_OVFL test
Alan Modra
amodra@sourceware.org
Wed Aug 4 03:47:59 GMT 2021
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=29daccc9f322b69c9db5e68134d4433f7356ac65
commit 29daccc9f322b69c9db5e68134d4433f7356ac65
Author: Alan Modra <amodra@gmail.com>
Date: Wed Aug 4 12:29:45 2021 +0930
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.
Diff:
---
bfd/coffcode.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bfd/coffcode.h b/bfd/coffcode.h
index d2076effb41..d5d9153c4c4 100644
--- a/bfd/coffcode.h
+++ b/bfd/coffcode.h
@@ -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);
More information about the Binutils-cvs
mailing list