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
8 lines
340 B
Plaintext
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
|