diff options
author | Nick Clifton <nickc@redhat.com> | 2001-02-04 22:14:19 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2001-02-04 22:14:19 +0000 |
commit | a0f2e916a7d963dce042f27c920a37d09d9c95a1 (patch) | |
tree | c23730e8b225f17c46d2cfbadab4fe2328a0c57e /bfd/elf32-v850.c | |
parent | 9dec4c71b577952aa6fb11389fd815ef268d4fb8 (diff) | |
download | gdb-a0f2e916a7d963dce042f27c920a37d09d9c95a1.zip gdb-a0f2e916a7d963dce042f27c920a37d09d9c95a1.tar.gz gdb-a0f2e916a7d963dce042f27c920a37d09d9c95a1.tar.bz2 |
Do not convert reloc addend to PC rel, it will be handled later on.
Diffstat (limited to 'bfd/elf32-v850.c')
-rw-r--r-- | bfd/elf32-v850.c | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/bfd/elf32-v850.c b/bfd/elf32-v850.c index 67fede0..435c9e3 100644 --- a/bfd/elf32-v850.c +++ b/bfd/elf32-v850.c @@ -1300,6 +1300,21 @@ v850_elf_reloc (abfd, reloc, symbol, data, isection, obfd, err) relocation += symbol->section->output_offset; relocation += reloc->addend; +#if 0 /* Since this reloc is going to be processed later on, we should + not make it pc-relative here. To test this, try assembling and + linking this program: + + .text + .globl _start + nop + _start: + jr foo + + .section ".foo","ax" + nop + foo: + nop + */ if (reloc->howto->pc_relative == true) { /* Here the variable relocation holds the final address of the @@ -1309,7 +1324,7 @@ v850_elf_reloc (abfd, reloc, symbol, data, isection, obfd, err) /* Deal with pcrel_offset */ relocation -= reloc->address; } - +#endif reloc->addend = relocation; return bfd_reloc_ok; } |