24 lines · plain
1# REQUIRES: x862# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o3# RUN: ld.lld %t.o --image-base=0 --section-start .data=0x20 \4# RUN: --section-start .bss=0x30 --section-start .text=0x10 -o %t15# RUN: llvm-objdump --section-headers %t1 | FileCheck %s6 7# CHECK: Sections:8# CHECK-NEXT: Idx Name Size VMA Type9# CHECK-NEXT: 0 00000000 000000000000000010# CHECK-NEXT: 1 .text 00000001 0000000000000010 TEXT11# CHECK-NEXT: 2 .data 00000004 0000000000000020 DATA12# CHECK-NEXT: 3 .bss 00000004 0000000000000030 BSS13 14.text15.globl _start16_start:17 nop18 19.data20.long 021 22.bss23.zero 424