brintos

brintos / llvm-project-archived public Read only

0
0
Text · 543 B · 3fa8cad Raw
21 lines · plain
1# REQUIRES: x862 3# RUN: echo ".section .aaa, \"a\"; .quad 0; .section .bbb, \"a\"; .quad 0;" \4# RUN:   | llvm-mc -filetype=obj -triple=x86_64-pc-linux - -o %t5# RUN: ld.lld %t --script %s -o %t26 7# RUN: llvm-objdump --section-headers %t2 | FileCheck %s8# CHECK: .aaa 00000008 0000000000001008 DATA9# CHECK: .bbb 00000008 0000000000001000 DATA10 11MEMORY {12  REGION (rwx) : ORIGIN = 0x1000, LENGTH = 0x10013}14 15SECTIONS {16  .aaa ORIGIN(REGION) + 0x8 : { *(.aaa) } > REGION17  _stext = .;18  .bbb ORIGIN(REGION) : { *(.bbb) } > REGION19  . = _stext;20}21