[ARM] Adjust how NEON shifts are lowered
[llvm-core.git] / test / tools / llvm-readobj / elf-dynamic-table-dtnull.s
blobb613e4137d1259d240209cefa8e68211d0d64945
1 # Check we are able to dump the dynamic section without a DT_NULL entry correctly.
3 # RUN: yaml2obj -docnum=1 %s -o %t.o
4 # RUN: llvm-readobj --dynamic-table %t.o | FileCheck %s --check-prefix=NONULL-LLVM
5 # RUN: llvm-readelf --dynamic-table %t.o | FileCheck %s --check-prefix=NONULL-GNU
7 # NONULL-LLVM: DynamicSection [ (1 entries)
8 # NONULL-LLVM-NEXT: Tag Type Name/Value
9 # NONULL-LLVM-NEXT: 0x0000000000000015 DEBUG 0x0
10 # NONULL-LLVM-NEXT: ]
12 # NONULL-GNU: Dynamic section at offset {{.*}} contains 1 entries:
13 # NONULL-GNU-NEXT: Tag Type Name/Value
14 # NONULL-GNU-NEXT: 0x0000000000000015 (DEBUG) 0x0
16 --- !ELF
17 FileHeader:
18 Class: ELFCLASS64
19 Data: ELFDATA2LSB
20 Type: ET_EXEC
21 Machine: EM_X86_64
22 Sections:
23 - Name: .dynamic
24 Type: SHT_DYNAMIC
25 Address: 0x0000000000001010
26 AddressAlign: 0x0000000000000010
27 EntSize: 0x0000000000000010
28 Entries:
29 - Tag: DT_DEBUG
30 Value: 0x0000000000000000
31 ProgramHeaders:
32 - Type: PT_LOAD
33 VAddr: 0x1000
34 Sections:
35 - Section: .dynamic
36 - Type: PT_DYNAMIC
37 VAddr: 0x1010
38 Sections:
39 - Section: .dynamic
41 # Sometimes .dynamic section content length can be greater than the
42 # length of its entries. In this case, we should not try to dump anything
43 # past the DT_NULL entry, which works as a terminator.
45 # RUN: yaml2obj -docnum=2 %s -o %t.o
46 # RUN: llvm-readobj --dynamic-table %t.o | FileCheck %s --check-prefix=LONG-LLVM
47 # RUN: llvm-readelf --dynamic-table %t.o | FileCheck %s --check-prefix=LONG-GNU
49 # LONG-LLVM: DynamicSection [ (2 entries)
50 # LONG-LLVM-NEXT: Tag Type Name/Value
51 # LONG-LLVM-NEXT: 0x0000000000000015 DEBUG 0x0
52 # LONG-LLVM-NEXT: 0x0000000000000000 NULL 0x0
53 # LONG-LLVM-NEXT: ]
55 # LONG-GNU: Dynamic section at offset {{.*}} contains 2 entries:
56 # LONG-GNU-NEXT: Tag Type Name/Value
57 # LONG-GNU-NEXT: 0x0000000000000015 (DEBUG) 0x0
58 # LONG-GNU-NEXT: 0x0000000000000000 (NULL) 0x0
60 --- !ELF
61 FileHeader:
62 Class: ELFCLASS64
63 Data: ELFDATA2LSB
64 Type: ET_EXEC
65 Machine: EM_X86_64
66 Sections:
67 - Name: .dynamic
68 Type: SHT_DYNAMIC
69 Address: 0x0000000000001010
70 AddressAlign: 0x0000000000000010
71 EntSize: 0x0000000000000010
72 Entries:
73 - Tag: DT_DEBUG
74 Value: 0x0000000000000000
75 - Tag: DT_NULL
76 Value: 0x0000000000000000
77 - Tag: DT_NULL
78 Value: 0x0000000000000000
79 ProgramHeaders:
80 - Type: PT_LOAD
81 VAddr: 0x1000
82 Sections:
83 - Section: .dynamic
84 - Type: PT_DYNAMIC
85 VAddr: 0x1010
86 Sections:
87 - Section: .dynamic