mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-23 03:29:47 +08:00
* elf64-ppc.c (ppc64_elf_relocate_section): Correct pcrel section zero.
This commit is contained in:
@ -1,3 +1,7 @@
|
|||||||
|
2003-06-17 Alan Modra <amodra@bigpond.net.au>
|
||||||
|
|
||||||
|
* elf64-ppc.c (ppc64_elf_relocate_section): Correct pcrel section zero.
|
||||||
|
|
||||||
2003-06-16 Alan Modra <amodra@bigpond.net.au>
|
2003-06-16 Alan Modra <amodra@bigpond.net.au>
|
||||||
|
|
||||||
* elf64-ppc.c (ppc64_elf_relocate_section): When optimizing toctprel
|
* elf64-ppc.c (ppc64_elf_relocate_section): When optimizing toctprel
|
||||||
|
@ -8349,7 +8349,9 @@ ppc64_elf_relocate_section (output_bfd, info, input_bfd, input_section,
|
|||||||
addend = outrel.r_addend;
|
addend = outrel.r_addend;
|
||||||
/* Adjust pc_relative relocs to have zero in *r_offset. */
|
/* Adjust pc_relative relocs to have zero in *r_offset. */
|
||||||
else if (ppc64_elf_howto_table[(int) r_type]->pc_relative)
|
else if (ppc64_elf_howto_table[(int) r_type]->pc_relative)
|
||||||
addend = outrel.r_offset;
|
addend = (input_section->output_section->vma
|
||||||
|
+ input_section->output_offset
|
||||||
|
+ rel->r_offset);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Reference in New Issue
Block a user