* elf32-arm.h (elf32_arm_finish_dynamic_symbol): Make .rel.plt
relocations use a virtual address, not a section offset.
This commit is contained in:
parent
09c112daa3
commit
2a1b9a480a
|
@ -1,3 +1,8 @@
|
||||||
|
2004-10-12 Mark Mitchell <mark@codesourcery.com>
|
||||||
|
|
||||||
|
* elf32-arm.h (elf32_arm_finish_dynamic_symbol): Make .rel.plt
|
||||||
|
relocations use a virtual address, not a section offset.
|
||||||
|
|
||||||
2004-10-12 Bob Wilson <bob.wilson@acm.org>
|
2004-10-12 Bob Wilson <bob.wilson@acm.org>
|
||||||
|
|
||||||
* elf32-xtensa.c (elf_xtensa_get_private_bfd_flags): Delete.
|
* elf32-xtensa.c (elf_xtensa_get_private_bfd_flags): Delete.
|
||||||
|
|
|
@ -3853,7 +3853,8 @@ elf32_arm_finish_dynamic_symbol (bfd * output_bfd, struct bfd_link_info * info,
|
||||||
splt->contents + h->plt.offset + 4 * i);
|
splt->contents + h->plt.offset + 4 * i);
|
||||||
|
|
||||||
/* Fill in the entry in the .rel.plt section. */
|
/* Fill in the entry in the .rel.plt section. */
|
||||||
rel.r_offset = (splt->output_offset
|
rel.r_offset = (splt->output_section->vma
|
||||||
|
+ splt->output_offset
|
||||||
+ h->plt.offset + 4 * (i - 1));
|
+ h->plt.offset + 4 * (i - 1));
|
||||||
rel.r_info = ELF32_R_INFO (h->dynindx, R_ARM_GLOB_DAT);
|
rel.r_info = ELF32_R_INFO (h->dynindx, R_ARM_GLOB_DAT);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue