[lld] [lld] Do not implicitly link non "public" libraries (PR #97639)

Ellis Hoag via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 3 14:51:27 PDT 2024


================
@@ -0,0 +1,49 @@
+# REQUIRES: arm
+# RUN: rm -rf %t; split-file %s %t
+# RUN: ln -s Versions/A/Framework1.tbd %t/System/Library/Frameworks/Framework1.framework/
+# RUN: ln -s Versions/A/Framework11.tbd %t/System/Library/Frameworks/Framework11.framework/
+# RUN: llvm-mc -filetype obj -triple arm64-apple-macos11.0 %t/test.s -o %t/test.o
+# RUN: %lld -arch arm64 -platform_version macos 11.0 11.0 -o %t/test -syslibroot %t -framework Framework1 %t/test.o
+
+# RUN: llvm-objdump --bind --no-show-raw-insn -d %t/test | FileCheck %s
+# CHECK:     Bind table:
+# CHECK-DAG: __DATA __data {{.*}} pointer 0 Framework1   _func1
+# CHECK-DAG: __DATA __data {{.*}} pointer 0 Framework1   _func11
----------------
ellishg wrote:

You might want to avoid using names `_func1` and `_func11` since the first is a substring of the other. Line 10 could match the next line.

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


More information about the llvm-commits mailing list