Skip to content

Commit 4878851

Browse files
committed
[lld/mac] add a comment pointing to a test that took me a while to find
1 parent 05953cf commit 4878851

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

lld/test/MachO/private-extern.s

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020
# EXPORTS-NM-DAG: (__TEXT,__cstring) non-external (was a private external) _foo
2121
# EXPORTS-NM-DAG: (__TEXT,__cstring) external _bar
2222

23+
# Tests that weak private_exten symbols aren't referenced in the
24+
# weak bind table are in weak-private.extern.s
25+
2326
#--- basics.s
2427
.section __TEXT,__cstring
2528

lld/test/MachO/weak-private-extern.s

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
# RUN: llvm-mc -filetype=obj -triple=x86_64-apple-macos %s -o %t.o
44
# RUN: %lld -dylib %t.o -o %t.dylib -lSystem
5+
56
# RUN: llvm-objdump --macho --weak-bind %t.dylib | FileCheck %s
67
# CHECK-NOT: __got
78
# CHECK-NOT: __la_symbol_ptr

0 commit comments

Comments
 (0)