• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# RUN: llvm-objcopy %p/Inputs/dynamic.so %t
2# RUN: llvm-readobj --dynamic-table %t | FileCheck %s
3# RUN: llvm-readobj --sections %t | FileCheck --check-prefix=LINK %s
4
5#CHECK: DynamicSection [
6#CHECK-NEXT:  Tag                Type                 Name/Value
7#CHECK-NEXT:  0x0000000000000006 SYMTAB               0x1C8
8#CHECK-NEXT:  0x000000000000000B SYMENT               24
9#CHECK-NEXT:  0x0000000000000005 STRTAB               0x210
10#CHECK-NEXT:  0x000000000000000A STRSZ                5
11#CHECK-NEXT:  0x0000000000000004 HASH                 0x1F8
12#CHECK-NEXT:  0x0000000000000000 NULL                 0x0
13#CHECK-NEXT:]
14
15#LINK:         Index: 3
16#LINK-NEXT:    Name: .dynstr
17
18#LINK:         Name: .dynamic
19#LINK-NEXT:    Type: SHT_DYNAMIC
20#LINK-NEXT:    Flags [
21#LINK-NEXT:      SHF_ALLOC
22#LINK-NEXT:      SHF_WRITE
23#LINK-NEXT:    ]
24#LINK-NEXT:    Address:
25#LINK-NEXT:    Offset:
26#LINK-NEXT:    Size:
27#LINK-NEXT:    Link: 3
28