[lld] [NFC][test][ELF] Check DSO's ifunc2 is in .iplt in aarch64-ifunc-bti.s (PR #210618)

via llvm-commits llvm-commits at lists.llvm.org
Sun Jul 19 09:42:04 PDT 2026


llvmorg-github-actions[bot] wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-lld

Author: Jessica Clarke (jrtc27)

<details>
<summary>Changes</summary>

This mirror's the PIE's CHECK lines, which were already stricter.

---

<sub>Stack created with <a href="https://github.com/github/gh-stack">GitHub Stacks CLI</a> • <a href="https://gh.io/stacks-feedback">Give Feedback 💬</a></sub>

---
Full diff: https://github.com/llvm/llvm-project/pull/210618.diff


1 Files Affected:

- (modified) lld/test/ELF/aarch64-ifunc-bti.s (+3-1) 


``````````diff
diff --git a/lld/test/ELF/aarch64-ifunc-bti.s b/lld/test/ELF/aarch64-ifunc-bti.s
index d1794518cf588..5a528d9af770e 100644
--- a/lld/test/ELF/aarch64-ifunc-bti.s
+++ b/lld/test/ELF/aarch64-ifunc-bti.s
@@ -49,8 +49,10 @@
 # CHECK-NEXT:                   br      x17
 # CHECK-NEXT:                   nop
 
+# SHARED: Disassembly of section .iplt:
+# SHARED-EMPTY:
 ## The address of ifunc2 (STT_FUNC) escapes, so it must have `bti c`.
-# SHARED:      <ifunc2>:
+# SHARED-NEXT: <ifunc2>:
 # SHARED-NEXT:    bti     c
 
 # SHARED:         nop

``````````

</details>


https://github.com/llvm/llvm-project/pull/210618


More information about the llvm-commits mailing list