1# REQUIRES: x86 2# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux /dev/null -o %t.o 3# RUN: ld.lld -T %s -z max-page-size=0x4000 %t.o -o %t.so -shared 4# RUN: llvm-readobj -S %t.so | FileCheck %s 5 6SECTIONS { 7 . = SIZEOF_HEADERS; 8 .text : { *(.text) } 9 . = ALIGN(CONSTANT(MAXPAGESIZE)); 10 . = . + 0x3000; 11 .dynamic : { *(.dynamic) } 12} 13 14# CHECK: Name: .dynamic 15# CHECK-NEXT: Type: SHT_DYNAMIC 16# CHECK-NEXT: Flags [ 17# CHECK-NEXT: SHF_ALLOC 18# CHECK-NEXT: SHF_WRITE 19# CHECK-NEXT: ] 20# CHECK-NEXT: Address: 0x7000 21# CHECK-NEXT: Offset: 0x3000 22