1 ## Ensure that the visibility of symbols added with --add-symbol can be
2 ## specified with the --new-symbol-visibility switch.
4 # RUN: yaml2obj %s -o %t.obj
5 # RUN: llvm-objcopy --new-symbol-visibility protected --add-symbol symbol_protected=.text:42 \
6 # RUN: --add-symbol symbol_hidden=.text:42,hidden %t.obj %t
7 # RUN: llvm-readelf -s %t | FileCheck %s
19 # CHECK: PROTECTED {{.*}} symbol_protected
20 # CHECK: HIDDEN {{.*}} symbol_hidden