diff options
author | Daniel Jacobowitz <dan@debian.org> | 2004-09-16 17:02:14 +0000 |
---|---|---|
committer | Daniel Jacobowitz <dan@debian.org> | 2004-09-16 17:02:14 +0000 |
commit | fca010d7bfaeb7657a222ae31a1ac6d2ff8b22a9 (patch) | |
tree | 04c103f9b8023e9e39971635650fcf0621942487 /bfd/elf32-i860.c | |
parent | 7d7c6fcee69a56637940d72acf1f5aec3c5c78f4 (diff) | |
download | gdb-fca010d7bfaeb7657a222ae31a1ac6d2ff8b22a9.tar.gz |
Merge mainline to intercu branch - 2004-09-15
Diffstat (limited to 'bfd/elf32-i860.c')
-rw-r--r-- | bfd/elf32-i860.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bfd/elf32-i860.c b/bfd/elf32-i860.c index f156bc51e1a..010ac2e7619 100644 --- a/bfd/elf32-i860.c +++ b/bfd/elf32-i860.c @@ -63,7 +63,7 @@ i860_howto_pc26_reloc (bfd *abfd ATTRIBUTE_UNUSED, relocation += symbol->section->output_offset; relocation += reloc_entry->addend; - if (reloc_entry->address > input_section->_cooked_size) + if (reloc_entry->address > bfd_get_section_limit (abfd, input_section)) return bfd_reloc_outofrange; /* Adjust for PC-relative relocation. */ @@ -126,7 +126,7 @@ i860_howto_pc16_reloc (bfd *abfd, relocation += symbol->section->output_offset; relocation += reloc_entry->addend; - if (reloc_entry->address > input_section->_cooked_size) + if (reloc_entry->address > bfd_get_section_limit (abfd, input_section)) return bfd_reloc_outofrange; /* Adjust for PC-relative relocation. */ @@ -191,7 +191,7 @@ i860_howto_highadj_reloc (bfd *abfd, relocation += reloc_entry->addend; relocation += 0x8000; - if (reloc_entry->address > input_section->_cooked_size) + if (reloc_entry->address > bfd_get_section_limit (abfd, input_section)) return bfd_reloc_outofrange; addr = (bfd_byte *) data + reloc_entry->address; @@ -243,7 +243,7 @@ i860_howto_splitn_reloc (bfd *abfd, relocation += symbol->section->output_offset; relocation += reloc_entry->addend; - if (reloc_entry->address > input_section->_cooked_size) + if (reloc_entry->address > bfd_get_section_limit (abfd, input_section)) return bfd_reloc_outofrange; addr = (bfd_byte *) data + reloc_entry->address; |