Skip to content

Commit 77ef5a6

Browse files
authored
[Clang][NFC] Fix a test failure with mold linker (#122587)
Mold prefers the suffix '$' for symbols like PLT and GOT entries, so exclude these symbols as well. Otherwise, this test will fail for developers using mold-linked Clang. Closes #76982
1 parent 32bcd41 commit 77ef5a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/test/LibClang/symbols.test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Check that there are no unversioned clang symbols in libclang.so
22
RUN: llvm-nm -Dj --defined-only %libclang | grep -v -e '@@LLVM_[0-9]\+$' | not grep '^clang'
33

4-
# Check that here are no local clang_ symbols (ignoring symbols with .cold or
4+
# Check that there are no local clang_ symbols (ignoring symbols with .cold or
55
# .localalias suffxies.)
6-
RUN: llvm-nm %libclang | not grep '[a-z] clang_[^.]\+$'
6+
RUN: llvm-nm %libclang | not grep '[a-z] clang_[^.$]\+$'

0 commit comments

Comments
 (0)