aboutsummaryrefslogtreecommitdiff
path: root/bfd/reloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'bfd/reloc.c')
-rw-r--r--bfd/reloc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/bfd/reloc.c b/bfd/reloc.c
index d902a9b..1677e86 100644
--- a/bfd/reloc.c
+++ b/bfd/reloc.c
@@ -7623,6 +7623,10 @@ bfd_generic_get_relocated_section_contents (bfd *abfd,
(*parent)->howto = &none_howto;
r = bfd_reloc_ok;
}
+ /* PR 17512: file: c146ab8b. */
+ else if ((*parent)->address * bfd_octets_per_byte (abfd)
+ >= bfd_get_section_size (input_section))
+ r = bfd_reloc_outofrange;
else
r = bfd_perform_relocation (input_bfd,
*parent,