2 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
3 # RUN: echo "SECTIONS { \
4 # RUN: used_in_reloc : { *(used_in_reloc) } \
5 # RUN: used_in_script : { *(used_in_script) } \
6 # RUN: .text : { *(.text) } \
8 # RUN: ld.lld -T %t.script -o %t.so %t.o --gc-sections -z nostart-stop-gc
9 # RUN: llvm-objdump -h %t.so | FileCheck %s
11 # CHECK: Idx Name Size VMA Type
13 # CHECK-NEXT: used_in_reloc
15 # CHECK-NEXT: .comment
17 # CHECK-NEXT: .shstrtab
22 .quad __start_used_in_reloc
27 .section used_in_script,"a"
28 .quad __start_used_in_script
30 .section used_in_reloc,"a"