[lld] [lld] Merge equivalent symbols found during ICF (PR #134342)

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 16 09:10:35 PDT 2025


================
@@ -0,0 +1,85 @@
+// REQUIRES: aarch64
+
+# RUN: llvm-mc -filetype=obj -triple=aarch64 %s -o %t
+# RUN: ld.lld %t -o %t2 --icf=all
+# RUN: llvm-objdump --section-headers %t2 | FileCheck %s --check-prefix=EXE
+
+# RUN: ld.lld -shared %t -o %t3 --icf=all
----------------
MaskRay wrote:

Use  `llvm-mc -crel` to test SHT_CREL as well

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


More information about the llvm-commits mailing list