1# REQUIRES: x86
2
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 %t
5# RUN: ld.lld %t --script %s -o %t2
6
7# RUN: llvm-objdump --section-headers %t2 | FileCheck %s
8# CHECK: .aaa 00000008 0000000000001008 DATA
9# CHECK: .bbb 00000008 0000000000001000 DATA
10
11MEMORY {
12  REGION (rwx) : ORIGIN = 0x1000, LENGTH = 0x100
13}
14
15SECTIONS {
16  .aaa ORIGIN(REGION) + 0x8 : { *(.aaa) } > REGION
17  _stext = .;
18  .bbb ORIGIN(REGION) : { *(.bbb) } > REGION
19  . = _stext;
20}
21