Movatterモバイル変換
[0]ホーム
This is the mail archive of thebinutils@sources.redhat.commailing list for thebinutils project.
Re: elf64-ppc.c *r_offset patch
I shouldn't cheat, if only to save confusion on the part of someonereading this code at a later date. outrel.r_offset will have the samevalue as the new expression I'm using below, except when the symconcerned is in a stabs or eh section.* elf64-ppc.c (ppc64_elf_relocate_section): Correct pcrel section zero.Index: bfd/elf64-ppc.c===================================================================RCS file: /cvs/src/src/bfd/elf64-ppc.c,vretrieving revision 1.102diff -u -p -r1.102 elf64-ppc.c--- bfd/elf64-ppc.c16 Jun 2003 10:50:22 -00001.102+++ bfd/elf64-ppc.c17 Jun 2003 00:19:44 -0000@@ -8349,7 +8349,9 @@ ppc64_elf_relocate_section (output_bfd, addend = outrel.r_addend; /* Adjust pc_relative relocs to have zero in *r_offset. */ 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;-- Alan ModraIBM OzLabs - Linux Technology Centre
[8]ページ先頭