brintos

brintos / llvm-project-archived public Read only

0
0
Text · 901 B · c2611a7 Raw
33 lines · plain
1# REQUIRES: x862# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o3# RUN: echo "SECTIONS { \4# RUN:         used_in_reloc : { *(used_in_reloc) } \5# RUN:         used_in_script : { *(used_in_script) } \6# RUN:         .text : { *(.text) } \7# RUN:       }" > %t.script8# RUN: ld.lld -T %t.script -o %t.so %t.o --gc-sections -z nostart-stop-gc9# RUN: llvm-objdump -h %t.so | FileCheck %s10 11# CHECK: Idx Name          Size      VMA          Type12# CHECK-NEXT:  013# CHECK-NEXT:    used_in_reloc14# CHECK-NEXT:    used_in_script15# CHECK-NEXT:    .text16# CHECK-NEXT:    .comment17# CHECK-NEXT:    .symtab18# CHECK-NEXT:    .shstrtab19# CHECK-NEXT:    .strtab20 21        .global _start22_start:23        .quad __start_used_in_reloc24 25        .section unused,"a"26        .quad 027 28        .section used_in_script,"a"29        .quad __start_used_in_script30 31        .section used_in_reloc,"a"32        .quad 033