[ARM/FDPIC v6 08/24] [ARM] FDPIC: Enforce local/global binding for function descriptors
authorChristophe Lyon <christophe.lyon@st.com>
Tue, 10 Sep 2019 07:50:43 +0000 (09:50 +0200)
committerChristophe Lyon <clyon@gcc.gnu.org>
Tue, 10 Sep 2019 07:50:43 +0000 (09:50 +0200)
commit96ef8d00f70f076933eea68124043e9ba675412d
tree356ea63ade0ad52bc4c1e95a658f580c818c706e
parent4997c9aed45b4439474005c4c71fac65151d1719
[ARM/FDPIC v6 08/24] [ARM] FDPIC: Enforce local/global binding for function descriptors

Use local binding rules to decide whether we can use GOTOFFFUNCDESC to
compute the function address.

2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
Mickaël Guêné <mickael.guene@st.com>

gcc/
* config/arm/arm.c (arm_fdpic_local_funcdesc_p): New function.
(legitimize_pic_address): Enforce binding rules on function
pointers in FDPIC mode.
(arm_assemble_integer): Likewise.

Co-Authored-By: Mickaël Guêné <mickael.guene@st.com>
From-SVN: r275570
gcc/ChangeLog
gcc/config/arm/arm.c