1 ## Show that llvm-readobj/llvm-readelf tools can dump the .dynamic
2 ## section when it is not in a PT_DYNAMIC segment.
4 # RUN: yaml2obj %s -o %t.o
5 # RUN: llvm-readobj --dynamic-table %t.o 2>&1 \
6 # RUN: | FileCheck --check-prefixes=WARNING,LLVM %s
7 # RUN: llvm-readelf --dynamic-table %t.o 2>&1 \
8 # RUN: | FileCheck --check-prefixes=WARNING,GNU %s
10 # WARNING: warning: The SHT_DYNAMIC section '.dynamic' is not contained within the PT_DYNAMIC segment
12 # LLVM: DynamicSection [ (2 entries)
13 # LLVM-NEXT: Tag Type Name/Value
14 # LLVM-NEXT: 0x0000000000000018 BIND_NOW 0x1
15 # LLVM-NEXT: 0x0000000000000000 NULL 0x0
18 # GNU: Dynamic section at offset 0x{{.*}} contains 2 entries:
19 # GNU-NEXT: Tag Type Name/Value
20 # GNU-NEXT: 0x0000000000000018 (BIND_NOW) 0x1
21 # GNU-NEXT: 0x0000000000000000 (NULL) 0x0