[ARM] FDPIC: Make _GLOBAL_OFFSET_TABLE_ a relative symbol
2018-04-25 Christophe Lyon <christophe.lyon@st.com> Mickaël Guêné <mickael.guene@st.com> bfd/ * elf32-arm.c (elf32_arm_finish_dynamic_symbol): Handle _GLOBAL_OFFSET_TABLE_ in FDPIC mode.
This commit is contained in:
parent
29e9b073e3
commit
fac7bd6475
|
@ -1,3 +1,9 @@
|
|||
2018-04-25 Christophe Lyon <christophe.lyon@st.com>
|
||||
Mickaël Guêné <mickael.guene@st.com>
|
||||
|
||||
* elf32-arm.c (elf32_arm_finish_dynamic_symbol): Handle
|
||||
_GLOBAL_OFFSET_TABLE_ in FDPIC mode.
|
||||
|
||||
2018-04-25 Christophe Lyon <christophe.lyon@st.com>
|
||||
Mickaël Guêné <mickael.guene@st.com>
|
||||
|
||||
|
|
|
@ -17086,10 +17086,10 @@ elf32_arm_finish_dynamic_symbol (bfd * output_bfd,
|
|||
}
|
||||
|
||||
/* Mark _DYNAMIC and _GLOBAL_OFFSET_TABLE_ as absolute. On VxWorks,
|
||||
the _GLOBAL_OFFSET_TABLE_ symbol is not absolute: it is relative
|
||||
to the ".got" section. */
|
||||
and for FDPIC, the _GLOBAL_OFFSET_TABLE_ symbol is not absolute:
|
||||
it is relative to the ".got" section. */
|
||||
if (h == htab->root.hdynamic
|
||||
|| (!htab->vxworks_p && h == htab->root.hgot))
|
||||
|| (!htab->fdpic_p && !htab->vxworks_p && h == htab->root.hgot))
|
||||
sym->st_shndx = SHN_ABS;
|
||||
|
||||
return TRUE;
|
||||
|
|
Loading…
Reference in New Issue