File tree Expand file tree Collapse file tree 2 files changed +30
-12
lines changed
llvm/test/tools/llvm-readobj Expand file tree Collapse file tree 2 files changed +30
-12
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ ## Check that we can use the --elf-linker-options option
2
+ ## to dump SHT_LLVM_LINKER_OPTIONS sections.
3
+
4
+ # RUN: yaml2obj %s -o %t1
5
+ # RUN: llvm-readobj --elf-linker-options %t1 | FileCheck %s
6
+
7
+ # CHECK: LinkerOptions [
8
+ # CHECK-NEXT: option 0: value 0
9
+ # CHECK-NEXT: option 1: value 1
10
+ # CHECK-NEXT: ]
11
+
12
+ --- !ELF
13
+ FileHeader:
14
+ Class: ELFCLASS64
15
+ Data: ELFDATA2LSB
16
+ Type: ET_REL
17
+ Machine: EM_X86_64
18
+ Sections:
19
+ - Name: .linker-options
20
+ Type: SHT_LLVM_LINKER_OPTIONS
21
+ Options:
22
+ - Name: option 0
23
+ Value: value 0
24
+ - Name: option 1
25
+ Value: value 1
26
+
27
+ ## llvm-readelf doesn't support --elf-linker-options yet.
28
+ # RUN: llvm-readelf --elf-linker-options %t1 2>&1 | FileCheck %s --check-prefix=READELF
29
+
30
+ # READELF: printELFLinkerOptions not implemented!
You can’t perform that action at this time.
0 commit comments