1# REQUIRES: x86 2# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %p/Inputs/addr.s -o %t 3# RUN: ld.lld %t --script %s -o %t1 4# RUN: llvm-objdump --section-headers %t1 | FileCheck %s 5 6# CHECK: Sections: 7# CHECK-NEXT: Idx Name Size VMA Type 8# CHECK-NEXT: 0 00000000 0000000000000000 9# CHECK-NEXT: 1 .text 00000000 0000000000001000 TEXT 10# CHECK-NEXT: 2 .foo.1 00000008 0000000000001000 DATA 11# CHECK-NEXT: 3 .foo.2 00000008 0000000000001100 DATA 12# CHECK-NEXT: 4 .foo.3 00000008 0000000000001108 DATA 13 14SECTIONS { 15 . = 0x1000; 16 .text : { *(.text*) } 17 .foo.1 : { *(.foo.1) } 18 .foo.2 ADDR(.foo.1) + 0x100 : { *(.foo.2) } 19 .foo.3 : { *(.foo.3) } 20} 21