diff options
author | Alan Modra <amodra@bigpond.net.au> | 2001-12-03 23:16:20 +0000 |
---|---|---|
committer | Alan Modra <amodra@bigpond.net.au> | 2001-12-03 23:16:20 +0000 |
commit | 63c620005e47a672aca0e70a8b9af140f37a9890 (patch) | |
tree | c0fac37a8b9062aadf09593ab6308aca506fd870 /bfd/reloc.c | |
parent | a6ccb1b92e84fc77c6de89b7a9e05e694b80d7ff (diff) | |
download | gdb-63c620005e47a672aca0e70a8b9af140f37a9890.tar.gz |
* reloc.c (bfd_install_relocation): Correct reloc address test.
(bfd_perform_relocation): Formatting fix.
* bfd-in2.h: Regenerate for 2001-12-02 reloc.c change.
Diffstat (limited to 'bfd/reloc.c')
-rw-r--r-- | bfd/reloc.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/bfd/reloc.c b/bfd/reloc.c index 78b039b3972..e0e7d1633b6 100644 --- a/bfd/reloc.c +++ b/bfd/reloc.c @@ -627,8 +627,8 @@ bfd_perform_relocation (abfd, reloc_entry, data, input_section, output_bfd, } /* Is the address of the relocation really within the section? */ - if (reloc_entry->address > input_section->_cooked_size / - bfd_octets_per_byte (abfd)) + if (reloc_entry->address > (input_section->_cooked_size + / bfd_octets_per_byte (abfd))) return bfd_reloc_outofrange; /* Work out which section the relocation is targetted at and the @@ -1023,7 +1023,8 @@ bfd_install_relocation (abfd, reloc_entry, data_start, data_start_offset, } /* Is the address of the relocation really within the section? */ - if (reloc_entry->address > input_section->_cooked_size) + if (reloc_entry->address > (input_section->_cooked_size + / bfd_octets_per_byte (abfd))) return bfd_reloc_outofrange; /* Work out which section the relocation is targetted at and the |