Skip to content

Commit 35082de

Browse files
committed
[ICF] Add a NOP after branch in ICF thunk to improve debugability
1 parent 37bcd93 commit 35082de

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lld/MachO/Arch/ARM64.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ void ARM64::populateThunk(InputSection *thunk, Symbol *funcSym) {
176176
// Just a single direct branch to the target function.
177177
static constexpr uint32_t icfSafeThunkCode[] = {
178178
0x14000000, // 08: b target
179+
0xD503201F, // 0c: nop
179180
};
180181

181182
void ARM64::initICFSafeThunkBody(InputSection *thunk, Symbol *targetSym) const {

0 commit comments

Comments
 (0)