projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
82d1f13
)
revise PE IMAGE_SCN_LNK_NRELOC_OVFL test
author
Alan Modra
<amodra@gmail.com>
Wed, 4 Aug 2021 02:59:45 +0000
(12:29 +0930)
committer
Alan Modra
<amodra@gmail.com>
Wed, 4 Aug 2021 03:04:52 +0000
(12:34 +0930)
* coffcode.h (coff_set_alignment_hook): Test that the resulting
reloc count is not less than 0xffff.
bfd/coffcode.h
patch
|
blob
|
history
diff --git
a/bfd/coffcode.h
b/bfd/coffcode.h
index d2076effb41952d33b368127d519e040f7faa79e..d5d9153c4c4ca77b0aacc52be39a49672badce61 100644
(file)
--- 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 < 0x
ffff
)
+ if (n.r_vaddr < 0x
10000
)
{
_bfd_error_handler (_("%pB: overflow reloc count too small"), abfd);
bfd_set_error (bfd_error_bad_value);