brintos

brintos / llvm-project-archived public Read only

0
0
Text · 564 B · d96d526 Raw
25 lines · plain
1// REQUIRES: x862// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o3// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/gc-sections-weak.s -o %t2.o4// RUN: ld.lld %t.o %t2.o -o %t.so -shared --gc-sections5// RUN: llvm-readobj -S %t.so | FileCheck %s6 7.global foo8foo:9nop10 11.data12.global bar113bar1:14.quad foo15 16// CHECK:      Name: .text17// CHECK-NEXT: Type: SHT_PROGBITS18// CHECK-NEXT: Flags [19// CHECK-NEXT:   SHF_ALLOC20// CHECK-NEXT:   SHF_EXECINSTR21// CHECK-NEXT: ]22// CHECK-NEXT: Address:23// CHECK-NEXT: Offset:24// CHECK-NEXT: Size: 125