diff options
author | Andreas Jaeger <aj@suse.de> | 2001-02-28 12:32:10 +0000 |
---|---|---|
committer | Andreas Jaeger <aj@suse.de> | 2001-02-28 12:32:10 +0000 |
commit | 2ff36af9db36de17ecbf7a0adb427d35e4763415 (patch) | |
tree | ae4cdcf513d00d7784d98c0767e44d54747a2261 /bfd/elf64-x86-64.c | |
parent | e8068ec629c93b9685b31d4f8b21b833a4114181 (diff) | |
download | gdb-2ff36af9db36de17ecbf7a0adb427d35e4763415.tar.gz |
2001-02-28 Andreas Jaeger <aj@suse.de>x86_64versiong3
* elf64-x86-64.c (elf64_x86_64_relocate_section): Add relocation
to addend.
Diffstat (limited to 'bfd/elf64-x86-64.c')
-rw-r--r-- | bfd/elf64-x86-64.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bfd/elf64-x86-64.c b/bfd/elf64-x86-64.c index 88549b976d6..aedd2b8134f 100644 --- a/bfd/elf64-x86-64.c +++ b/bfd/elf64-x86-64.c @@ -1495,7 +1495,7 @@ elf64_x86_64_relocate_section (output_bfd, info, input_bfd, input_section, BFD_ASSERT (h != NULL && h->dynindx != -1); relocate = false; outrel.r_info = ELF64_R_INFO (h->dynindx, r_type); - outrel.r_addend = rela->r_addend; + outrel.r_addend = relocation + rela->r_addend; } else { @@ -1508,14 +1508,14 @@ elf64_x86_64_relocate_section (output_bfd, info, input_bfd, input_section, { relocate = true; outrel.r_info = ELF64_R_INFO (0, R_X86_64_RELATIVE); - outrel.r_addend = rela->r_addend; + outrel.r_addend = relocation + rela->r_addend; } else { BFD_ASSERT (h->dynindx != -1); relocate = false; outrel.r_info = ELF64_R_INFO (h->dynindx, R_X86_64_32); - outrel.r_addend = rela->r_addend; + outrel.r_addend = relocation + rela->r_addend; } } |