diff options
author | Bob Wilson <bob.wilson@acm.org> | 2004-06-29 22:03:33 +0000 |
---|---|---|
committer | Bob Wilson <bob.wilson@acm.org> | 2004-06-29 22:03:33 +0000 |
commit | bff5f93a2ca23a5bc4fae5de9f3ecd858c6129e7 (patch) | |
tree | ae7947ffdab4c2cc64c99693db45eb1b4003bc57 /bfd/elf32-xtensa.c | |
parent | b54d4b072212b616e6fe6a2089545a1dc54932a0 (diff) | |
download | gdb-bff5f93a2ca23a5bc4fae5de9f3ecd858c6129e7.zip gdb-bff5f93a2ca23a5bc4fae5de9f3ecd858c6129e7.tar.gz gdb-bff5f93a2ca23a5bc4fae5de9f3ecd858c6129e7.tar.bz2 |
* elf32-xtensa.c (elf_xtensa_relocate_section): Use
bfd_get_section_limit.
Diffstat (limited to 'bfd/elf32-xtensa.c')
-rw-r--r-- | bfd/elf32-xtensa.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |