diff options
author | Per Bothner <per@bothner.com> | 1991-09-26 18:26:28 +0000 |
---|---|---|
committer | Per Bothner <per@bothner.com> | 1991-09-26 18:26:28 +0000 |
commit | d0a27c3b8e57cf15bb15292bf9e90efc7be5b710 (patch) | |
tree | f0c1c158d4eef9e09c000ff906c9bf24c676e248 /bfd/reloc.c | |
parent | 905bb120d3865b055c08a78774eb96f9ed634b5a (diff) | |
download | gdb-d0a27c3b8e57cf15bb15292bf9e90efc7be5b710.zip gdb-d0a27c3b8e57cf15bb15292bf9e90efc7be5b710.tar.gz gdb-d0a27c3b8e57cf15bb15292bf9e90efc7be5b710.tar.bz2 |
Fix bfd_perform_relocation to handle pc-relative relocs better.
Diffstat (limited to 'bfd/reloc.c')
-rw-r--r-- | bfd/reloc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bfd/reloc.c b/bfd/reloc.c index 466497e..2d931c9 100644 --- a/bfd/reloc.c +++ b/bfd/reloc.c @@ -84,7 +84,7 @@ The symbol to relocate against was undefined. $ bfd_reloc_undefined, -The relocaction was performed, but may not be ok - presently generated +The relocation was performed, but may not be ok - presently generated only when linking i960 coff files with i960 b.out symbols. $ bfd_reloc_dangerous @@ -131,7 +131,7 @@ $} arelent; @table @code @item sym_ptr_ptr The symbol table pointer points to a pointer to the symbol ascociated with the -relocation request. This would naturaly be the pointer into the table +relocation request. This would naturally be the pointer into the table returned by the back end's get_symtab action. @xref{Symbols}. The symbol is referenced through a pointer to a pointer so that tools like the linker can fixup all the symbols of the same name by modifying @@ -148,7 +148,7 @@ two bytes of a four byte word would not touch the first byte pointed to in a big endian world. @item addend The addend is a value provided by the back end to be added (!) to the -relocation offset. It's interpretation is dependent upon the howto. +relocation offset. Its interpretation is dependent upon the howto. For example, on the 68k the code: *+ @@ -513,7 +513,7 @@ DEFUN(bfd_perform_relocation,(abfd, relocation -= - output_base + input_section->output_offset; + input_section->output_section->vma + input_section->output_offset; if (howto->pcrel_offset == true) { relocation -= reloc_entry->address; |