File tree Expand file tree Collapse file tree 14 files changed +40
-48
lines changed Expand file tree Collapse file tree 14 files changed +40
-48
lines changed Original file line number Diff line number Diff line change 11# RUN: llvm-mc -triple x86_64-pc-linux-gnu %s -filetype=obj -o %t.o
2- # RUN: llvm-readobj -S --elf-output-style=GNU %t.o | FileCheck %s
2+ # RUN: llvm-readelf -S %t.o | FileCheck %s
33
44## Check we add SHF_EXCLUDE flag for .dwo debug sections.
55# CHECK: .debug_info.dwo {{.*}} E
Original file line number Diff line number Diff line change 1111# RUN: --globalize-symbol Global1 \
1212# RUN: --keep-global-symbol Global2 \
1313# RUN: %t.o %t.2.o
14- # RUN: llvm-readobj --elf-output-style=GNU --symbols %t.2.o | FileCheck %s
14+ # RUN: llvm-readelf --symbols %t.2.o | FileCheck %s
1515
1616!ELF
1717FileHeader:
Original file line number Diff line number Diff line change 4040# RUN: -G Weak1 \
4141# RUN: --globalize-symbol Weak2 \
4242# RUN: %t.o %t.2.o
43- # RUN: llvm-readobj --elf-output-style=GNU --symbols %t.2.o | FileCheck %s
43+ # RUN: llvm-readelf --symbols %t.2.o | FileCheck %s
4444
4545# RUN: llvm-objcopy --regex --keep-global-symbols %t-globals-regexp.txt %t.o %t.3.o
46- # RUN: llvm-readobj --elf-output-style=GNU --symbols %t.3.o | FileCheck %s --check-prefix=REGEXP
46+ # RUN: llvm-readelf --symbols %t.3.o | FileCheck %s --check-prefix=REGEXP
4747
4848!ELF
4949FileHeader:
Original file line number Diff line number Diff line change 11# RUN: yaml2obj %s -o %t.o
22
3- # RUN: llvm-readobj --elf-section-groups --elf-output-style=GNU \
3+ # RUN: llvm-readelf --elf-section-groups \
44# RUN: %t.o >%tout.log 2>%terr.log
55# RUN: FileCheck %s -check-prefix=GNU-STDERR < %terr.log
66# GNU-STDERR: Error: section [ 3] in group section [ 4] already in group section [ 2]
Original file line number Diff line number Diff line change 1515
1616RUN: llvm-readobj -g %p/Inputs/elf-groups.x86_64 \
1717RUN: | FileCheck %s
18- RUN: llvm-readobj -g --elf-output-style=GNU %p/Inputs/elf-groups.x86_64 \
18+ RUN: llvm-readelf -g %p/Inputs/elf-groups.x86_64 \
1919RUN: | FileCheck --check-prefix="GNU" %s
2020CHECK: Groups {
2121CHECK-NEXT: Group {
Original file line number Diff line number Diff line change 1- RUN: llvm-readobj --elf-hash-histogram %p/Inputs/gnuhash.so.elf-ppc64 \
2- RUN: --elf-output-style=GNU | FileCheck %s -check-prefix PPC64GNU
3- RUN: llvm-readobj --elf-hash-histogram %p/Inputs/gnuhash.so.elf-x86_64 --elf-output-style=GNU \
1+ RUN: llvm-readelf --elf-hash-histogram %p/Inputs/gnuhash.so.elf-ppc64 \
2+ RUN: | FileCheck %s -check-prefix PPC64GNU
3+ RUN: llvm-readelf --elf-hash-histogram %p/Inputs/gnuhash.so.elf-x86_64 \
44RUN: | FileCheck %s -check-prefix X86GNU
5- RUN: llvm-readobj --elf-hash-histogram %p/Inputs/got-plt.exe.elf-mipsel --elf-output-style=GNU \
5+ RUN: llvm-readelf --elf-hash-histogram %p/Inputs/got-plt.exe.elf-mipsel \
66RUN: | FileCheck %s -check-prefix SYSV
77
88PPC64GNU: Histogram for `.gnu.hash' bucket list length (total of 3 buckets)
Original file line number Diff line number Diff line change 1- RUN: llvm-readobj -h %p/Inputs/trivial.obj.elf-i386 --elf-output-style=GNU \
1+ RUN: llvm-readelf -h %p/Inputs/trivial.obj.elf-i386 \
22RUN: | FileCheck %s -check-prefix ELF32
3- RUN: llvm-readobj -h %p/Inputs/trivial.obj.elf-x86-64 --elf-output-style=GNU \
3+ RUN: llvm-readelf -h %p/Inputs/trivial.obj.elf-x86-64 \
44RUN: | FileCheck %s -check-prefix ELF64
5- RUN: llvm-readobj -h %p/Inputs/trivial.obj.elf-mipsel --elf-output-style=GNU \
5+ RUN: llvm-readelf -h %p/Inputs/trivial.obj.elf-mipsel \
66RUN: | FileCheck %s -check-prefix MIPSEL
77
88ELF32: ELF Header:
Original file line number Diff line number Diff line change 1010# compiled as clang++ source.cpp
1111# and clang++ -m32 source.cpp
1212
13- RUN: llvm-readobj -l %p/Inputs/phdrs-elf.exe-i386 --elf-output-style=GNU \
13+ RUN: llvm-readelf -l %p/Inputs/phdrs-elf.exe-i386 \
1414RUN: | FileCheck %s -check-prefix ELF32
15- RUN: llvm-readobj -l %p/Inputs/phdrs-elf.exe-x86_64 --elf-output-style=GNU \
15+ RUN: llvm-readelf -l %p/Inputs/phdrs-elf.exe-x86_64 \
1616RUN: | FileCheck %s -check-prefixes ELF64-PHDRS,ELF64-MAPPING
1717RUN: llvm-readelf -program-headers %p/Inputs/phdrs-elf.exe-x86_64 \
1818RUN: | FileCheck %s -check-prefixes ELF64-PHDRS,ELF64-MAPPING
Original file line number Diff line number Diff line change 1- RUN: llvm-readobj -r %p/Inputs/relocs.obj.elf-i386 --elf-output-style=GNU \
1+ RUN: llvm-readelf -r %p/Inputs/relocs.obj.elf-i386 \
22RUN: | FileCheck %s -check-prefix ELF32
3- RUN: llvm-readobj -r %p/Inputs/relocs.obj.elf-x86_64 --elf-output-style=GNU \
3+ RUN: llvm-readelf -r %p/Inputs/relocs.obj.elf-x86_64 \
44RUN: | FileCheck %s -check-prefix ELF64
55
66ELF32: Relocation section '.rel.text' at offset 0x318 contains 41 entries:
Original file line number Diff line number Diff line change 1- RUN: llvm-readobj -S %p/Inputs/relocs.obj.elf-i386 --elf-output-style=GNU \
1+ RUN: llvm-readelf -S %p/Inputs/relocs.obj.elf-i386 \
22RUN: | FileCheck %s -check-prefix ELF32
3- RUN: llvm-readobj -S %p/Inputs/relocs.obj.elf-x86_64 --elf-output-style=GNU \
3+ RUN: llvm-readelf -S %p/Inputs/relocs.obj.elf-x86_64 \
44RUN: | FileCheck %s -check-prefix ELF64
55RUN: llvm-readobj --wide --sections \
66RUN: %p/Inputs/relocs.obj.elf-x86_64 --elf-output-style=GNU \
You can’t perform that action at this time.
0 commit comments