HomeFreeBSD

arm: Make sure we can handle a thumb entry point.

Description

arm: Make sure we can handle a thumb entry point.

Similarly to what's been done on arm64 with commit
712c060c94fd447c91b0e6218c12a431206b487a, when executing a binary, if the
entry point is a thumb symbol, then make sure we set the PSL_T flag, otherwise
the CPU will interpret it in ARM mode, and that will likely leads to an
undefined instruction.

PR: 256899
MFC after: 1 week

Details

Provenance
cognetAuthored on Jun 30 2021, 8:56 PM
Parents
rGd75d33870df1: ObsoleteFiles.inc: add a few missed files
Branches
Unknown
Tags
Unknown