diff options
Diffstat (limited to 'bfd/elf32-v850.c')
-rw-r--r-- | bfd/elf32-v850.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/bfd/elf32-v850.c b/bfd/elf32-v850.c index 05935e640af..d52c303b0e4 100644 --- a/bfd/elf32-v850.c +++ b/bfd/elf32-v850.c @@ -1334,7 +1334,6 @@ v850_elf_reloc (abfd, reloc, symbol, data, isection, obfd, err) bfd *obfd; char **err ATTRIBUTE_UNUSED; { - bfd_size_type sz; long relocation; /* If there is an output BFD, @@ -1360,8 +1359,7 @@ v850_elf_reloc (abfd, reloc, symbol, data, isection, obfd, err) /* We handle final linking of some relocs ourselves. */ /* Is the address of the relocation really within the section? */ - sz = isection->rawsize ? isection->rawsize : isection->size; - if (reloc->address > sz) + if (reloc->address > bfd_get_section_limit (abfd, isection)) return bfd_reloc_outofrange; /* Work out which section the relocation is targeted at and the |