21 lines · plain
1## Ensure that the visibility of symbols added with --add-symbol can be2## specified with the --new-symbol-visibility switch.3 4# RUN: yaml2obj %s -o %t.obj5# RUN: llvm-objcopy --new-symbol-visibility protected --add-symbol symbol_protected=.text:42 \6# RUN: --add-symbol symbol_hidden=.text:42,hidden %t.obj %t7# RUN: llvm-readelf -s %t | FileCheck %s8 9!ELF10FileHeader:11 Class: ELFCLASS6412 Data: ELFDATA2LSB13 Type: ET_REL14 Machine: EM_X86_6415Sections:16 - Name: .text17 Type: SHT_PROGBITS18 19# CHECK: PROTECTED {{.*}} symbol_protected20# CHECK: HIDDEN {{.*}} symbol_hidden21