brintos

brintos / llvm-project-archived public Read only

0
0
Text · 740 B · 0f212e8 Raw
23 lines · plain
1# REQUIRES: x862# RUN: echo '.section foo, "a"; .byte 0' \3# RUN:   | llvm-mc -filetype=obj -triple=x86_64-unknown-linux - -o %t.o4 5# RUN: ld.lld -o %t1 --script %s %t.o -shared6# RUN: llvm-objdump --section-headers %t1 | FileCheck %s7 8SECTIONS {9  . = SIZEOF_HEADERS;10  abc : {}11  . = ALIGN(0x1000);12  foo : { *(foo) }13}14 15# CHECK:      Sections:16# CHECK-NEXT: Idx Name          Size     VMA17# CHECK-NEXT:   0               00000000 000000000000000018# CHECK-NEXT:   1 .dynsym       00000018 00000000000001c819# CHECK-NEXT:   2 .gnu.hash     0000001c 00000000000001e020# CHECK-NEXT:   3 .hash         00000010 00000000000001fc21# CHECK-NEXT:   4 .dynstr       00000001 000000000000020c22# CHECK-NEXT:   5 foo           00000001 000000000000100023