1# REQUIRES: x86
2# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
3# RUN: ld.lld %t.o --section-start .data=0x20 \
4# RUN: --section-start .bss=0x30 --section-start .text=0x10 -o %t1
5# RUN: llvm-objdump --section-headers %t1 | FileCheck %s
6
7# CHECK:      Sections:
8# CHECK-NEXT:  Idx Name          Size     VMA              Type
9# CHECK-NEXT:    0               00000000 0000000000000000
10# CHECK-NEXT:    1 .text         00000001 0000000000000010 TEXT
11# CHECK-NEXT:    2 .data         00000004 0000000000000020 DATA
12# CHECK-NEXT:    3 .bss          00000004 0000000000000030 BSS
13
14.text
15.globl _start
16_start:
17 nop
18
19.data
20.long 0
21
22.bss
23.zero 4
24