Files
clang-p2996/llvm/test/tools/llvm-nm/X86/weak.test
Dave Lee d4f77a523b nm: Add -no-weak flag for hiding weak symbols
Summary:
This adds a new -no-weak flag to nm to hide weak symbols in its output.
This also adds a -W alias for this which is analogous to -U.

Patch by Keith Smiley

Reviewers: kastiglione, enderby, compnerd

Reviewed By: kastiglione

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D48751

llvm-svn: 336126
2018-07-02 17:24:37 +00:00

8 lines
340 B
Plaintext

# RUN: llvm-nm -B -S %p/Inputs/weak.obj.elf-x86_64 | FileCheck --match-full-lines %s
# RUN: llvm-nm -W -B -S %p/Inputs/weak.obj.elf-x86_64 | count 0
CHECK: w weak_extern_func
CHECK: w weak_extern_var
CHECK: 0000000000000000 0000000000000011 W weak_func
CHECK: 0000000000000000 0000000000000004 V weak_var