mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2024-11-28 22:40:24 +00:00
Do not convert reloc addend to PC rel, it will be handled later on.
This commit is contained in:
parent
9dec4c71b5
commit
a0f2e916a7
@ -1,3 +1,8 @@
|
||||
2001-02-04 Nick Clifton <nickc@redhat.com>
|
||||
|
||||
* elf32-v850.c (v850_elf_reloc): Do not convert reloc addend to PC
|
||||
rel, it will be handled later on.
|
||||
|
||||
2001-02-02 Fred Fish <fnf@ninemoons.com>
|
||||
|
||||
* Makefile.in: Fix typo.
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user