brintos

brintos / llvm-project-archived public Read only

0
0
Text · 464 B · c68312a Raw
21 lines · plain
1# REQUIRES: x862# RUN: echo '.section .bar, "aw"' \3# RUN:   | llvm-mc -filetype=obj -triple=x86_64-unknown-linux - -o %t.o4# RUN: ld.lld -o %t -T %s %t.o -shared5# RUN: llvm-readobj -S %t | FileCheck %s6 7SECTIONS {8  foo = 123;9  . = 0x1000;10  . = 0x2000;11  .bar : { *(.bar) }12}13 14# CHECK:      Name: .text15# CHECK-NEXT: Type: SHT_PROGBITS16# CHECK-NEXT: Flags [17# CHECK-NEXT:   SHF_ALLOC18# CHECK-NEXT:   SHF_EXECINSTR19# CHECK-NEXT: ]20# CHECK-NEXT: Address: 0x107021