From bff5f93a2ca23a5bc4fae5de9f3ecd858c6129e7 Mon Sep 17 00:00:00 2001 From: Bob Wilson Date: Tue, 29 Jun 2004 22:03:33 +0000 Subject: [PATCH] * elf32-xtensa.c (elf_xtensa_relocate_section): Use bfd_get_section_limit. --- bfd/ChangeLog | 5 +++++ bfd/elf32-xtensa.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index ec9e832..3c0e12a 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,5 +1,10 @@ 2004-06-29 Bob Wilson + * elf32-xtensa.c (elf_xtensa_relocate_section): Use + bfd_get_section_limit. + +2004-06-29 Bob Wilson + * elf32-xtensa.c (elf_xtensa_combine_prop_entries): Don't change the output section size. diff --git a/bfd/elf32-xtensa.c b/bfd/elf32-xtensa.c index c84dd34..c259662 100644 --- a/bfd/elf32-xtensa.c +++ b/bfd/elf32-xtensa.c @@ -1988,7 +1988,7 @@ elf_xtensa_relocate_section (output_bfd, info, input_bfd, } /* Sanity check the address. */ - if (rel->r_offset >= input_section->size + if (rel->r_offset >= bfd_get_section_limit (input_bfd, input_section) && ELF32_R_TYPE (rel->r_info) != R_XTENSA_NONE) { bfd_set_error (bfd_error_bad_value); -- 2.7.4