* elf32-xtensa.c (elf_xtensa_relocate_section): Use
bfd_get_section_limit.
This commit is contained in:
parent
b54d4b0722
commit
bff5f93a2c
@ -1,3 +1,8 @@
|
||||
2004-06-29 Bob Wilson <bob.wilson@acm.org>
|
||||
|
||||
* elf32-xtensa.c (elf_xtensa_relocate_section): Use
|
||||
bfd_get_section_limit.
|
||||
|
||||
2004-06-29 Bob Wilson <bob.wilson@acm.org>
|
||||
|
||||
* elf32-xtensa.c (elf_xtensa_combine_prop_entries): Don't change the
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user