aboutsummaryrefslogtreecommitdiff
path: root/bfd/coffcode.h
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2021-08-04 12:29:45 +0930
committerAlan Modra <amodra@gmail.com>2021-08-04 12:34:52 +0930
commit29daccc9f322b69c9db5e68134d4433f7356ac65 (patch)
tree247745bf324145ac035be990691a67f40472f997 /bfd/coffcode.h
parent82d1f134cc0908e80555ddad58b4d370ff2a76c2 (diff)
downloadgdb-29daccc9f322b69c9db5e68134d4433f7356ac65.zip
gdb-29daccc9f322b69c9db5e68134d4433f7356ac65.tar.gz
gdb-29daccc9f322b69c9db5e68134d4433f7356ac65.tar.bz2
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.
Diffstat (limited to 'bfd/coffcode.h')
-rw-r--r--bfd/coffcode.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/coffcode.h b/bfd/coffcode.h
index d2076ef..d5d9153 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);