llvm-project
bfaec6c0 - [LLD][COFF] Set the Thumb bit on locally imported ARMNT function poin… (#215919)

Commit
37 days ago
[LLD][COFF] Set the Thumb bit on locally imported ARMNT function poin… (#215919) When a dllimport reference turns out to be locally defined, lld synthesises the __imp_ pointer itself in LocalImportChunk. On ARMNT it was written unadjusted, so an indirect call through the slot requests ARM state on a Thumb-only target. Adjust it as DelayAddressChunk and AddressTableChunk already do, excluding data: dllimport of a locally defined variable is valid and its pointer must not change. Assisted-by: Claude Opus 5 (Anthropic)
Author
Parents
Loading