This is an archive of the discontinued LLVM Phabricator instance.

[LLD][ELF] Be more precise about Thumb state bit in ARM thunks
ClosedPublic

Authored by peter.smith on Jun 8 2017, 7:18 AM.

Details

Summary

The symbols generated for Thunks have type STT_FUNC, to permit a thunk to be reused via a blx instruction the Thumb bit (0) needs to be set properly.

With the current interworking Thunks we never need to do a bl/blx to a Thunk in a different state so this lack of precision doesn't hurt us. When range extension thunks are used we will need to do this.

Diff Detail

Repository
rL LLVM