mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-07-10 09:35:24 +08:00
[ARM] FDPIC: Translate R_ARM_TARGET2 relocation into R_ARM_GOT32 relocation for FDPIC platform
2018-04-25 Christophe Lyon <christophe.lyon@st.com> Mickaël Guêné <mickael.guene@st.com> bfd/ * elf32-arm.c (bfd_elf32_arm_set_target_params): Handle FDPIC case for R_ARM_TARGET2.
This commit is contained in:

committed by
Christophe Lyon

parent
cb10292c2a
commit
29e9b073e3
@ -1,3 +1,9 @@
|
|||||||
|
2018-04-25 Christophe Lyon <christophe.lyon@st.com>
|
||||||
|
Mickaël Guêné <mickael.guene@st.com>
|
||||||
|
|
||||||
|
* elf32-arm.c (bfd_elf32_arm_set_target_params): Handle FDPIC case
|
||||||
|
for R_ARM_TARGET2.
|
||||||
|
|
||||||
2018-04-25 Christophe Lyon <christophe.lyon@st.com>
|
2018-04-25 Christophe Lyon <christophe.lyon@st.com>
|
||||||
Mickaël Guêné <mickael.guene@st.com>
|
Mickaël Guêné <mickael.guene@st.com>
|
||||||
|
|
||||||
|
@ -8957,7 +8957,9 @@ bfd_elf32_arm_set_target_params (struct bfd *output_bfd,
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
globals->target1_is_rel = params->target1_is_rel;
|
globals->target1_is_rel = params->target1_is_rel;
|
||||||
if (strcmp (params->target2_type, "rel") == 0)
|
if (globals->fdpic_p)
|
||||||
|
globals->target2_reloc = R_ARM_GOT32;
|
||||||
|
else if (strcmp (params->target2_type, "rel") == 0)
|
||||||
globals->target2_reloc = R_ARM_REL32;
|
globals->target2_reloc = R_ARM_REL32;
|
||||||
else if (strcmp (params->target2_type, "abs") == 0)
|
else if (strcmp (params->target2_type, "abs") == 0)
|
||||||
globals->target2_reloc = R_ARM_ABS32;
|
globals->target2_reloc = R_ARM_ABS32;
|
||||||
|
Reference in New Issue
Block a user