2 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
4 # RUN: echo "SECTIONS { \
5 # RUN: . = SIZEOF_HEADERS; \
6 # RUN: .text : { *(.text) } \
7 # RUN: . = ALIGN(CONSTANT(MAXPAGESIZE)); \
8 # RUN: . = . + 0x3000; \
9 # RUN: .dynamic : { *(.dynamic) } \
12 # RUN: ld.lld -T %t.script -z max-page-size=0x4000 %t.o -o %t.so -shared
13 # RUN: llvm-readobj -s %t.so | FileCheck %s
15 # CHECK: Name: .dynamic
16 # CHECK-NEXT: Type: SHT_DYNAMIC
18 # CHECK-NEXT: SHF_ALLOC
19 # CHECK-NEXT: SHF_WRITE
21 # CHECK-NEXT: Address: 0x7000
22 # CHECK-NEXT: Offset: 0x3000