[ARM/FDPIC v6 13/24] [ARM] FDPIC: Force LSB bit for PC in Cortex-M architecture
authorChristophe Lyon <christophe.lyon@st.com>
Tue, 10 Sep 2019 07:58:44 +0000 (09:58 +0200)
committerChristophe Lyon <clyon@gcc.gnu.org>
Tue, 10 Sep 2019 07:58:44 +0000 (09:58 +0200)
commit84818dbb70375810557ce9d8880c4345e845c01d
tree05518d4a47b33ba9fb18fe2c4b548d0c2b60d4fc
parentbb33a88e3d4746470d3f969c6d764d20d726f9f1
[ARM/FDPIC v6 13/24] [ARM] FDPIC: Force LSB bit for PC in Cortex-M  architecture

Without this, when we are unwinding across a signal frame we can jump
to an even address which leads to an exception.

This is needed in __gnu_persnality_sigframe_fdpic() when restoring the
PC from the signal frame since the PC saved by the kernel has the LSB
bit set to zero.

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

libgcc/
* config/arm/unwind-arm.c (_Unwind_VRS_Set): Handle thumb-only
architecture.

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