* elf32-xtensa.c (elf_xtensa_relocate_section): Use
authorBob Wilson <bob.wilson@acm.org>
Tue, 29 Jun 2004 22:03:33 +0000 (22:03 +0000)
committerBob Wilson <bob.wilson@acm.org>
Tue, 29 Jun 2004 22:03:33 +0000 (22:03 +0000)
bfd_get_section_limit.

bfd/ChangeLog
bfd/elf32-xtensa.c

index ec9e83253f20a5efae99d87614d591773e9492ff..3c0e12a855303783acc15fdc1fa77560c703ae59 100644 (file)
@@ -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
index c84dd34d9504f6c7da90e83ec1816c8097ae47fc..c2596625ee3c4105aac9ae0ba80d589d4bc684b3 100644 (file)
@@ -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);
This page took 0.030604 seconds and 4 git commands to generate.