-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Closed
Labels
system:apple siliconAffects Apple Silicon only (Darwin/ARM64) - e.g. M1 and other M-series chipsAffects Apple Silicon only (Darwin/ARM64) - e.g. M1 and other M-series chipssystem:macAffects only macOSAffects only macOSupstreamThe issue is with an upstream dependency, e.g. LLVMThe issue is with an upstream dependency, e.g. LLVM
Description
LLVM generates the following code on AArch64 darwin under make debug:
bl _japi1_BitSet_5477
str x0, [x19, #224]
Lloh112385:
adrp x8, __MergedGlobals.2@PAGE
Lloh112386:
add x9, x8, __MergedGlobals.2@PAGEOFF
Lloh112387:
adrp x8, __MergedGlobals.5@PAGE
Lloh112388:
add x8, x8, __MergedGlobals.5@PAGEOFF
stp x8, x9, [x19, #24]
adrp xzr, __MergedGlobals.1@PAGE
add xzr, xzr, __MergedGlobals.1@PAGEOFF
The last statement here is invalid and actually encodes add sp, sp, __MergedGlobals.1@PAGEOFF, which corrupts the stack.
Metadata
Metadata
Assignees
Labels
system:apple siliconAffects Apple Silicon only (Darwin/ARM64) - e.g. M1 and other M-series chipsAffects Apple Silicon only (Darwin/ARM64) - e.g. M1 and other M-series chipssystem:macAffects only macOSAffects only macOSupstreamThe issue is with an upstream dependency, e.g. LLVMThe issue is with an upstream dependency, e.g. LLVM