mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-04-04 16:54:12 +00:00
[Object] Change ELFObjectFile<ELFT>::getFileFormatName() to use BFD names
Follow-up for D74433 What the function returns are almost standard BFD names, except that "ELF" is in uppercase instead of lowercase. This patch changes "ELF" to "elf" and changes ARM/AArch64 to use their BFD names. MIPS and PPC64 have endianness differences as well, but this patch does not intend to address them. Advantages: * llvm-objdump: the "file format " line matches GNU objdump on ARM/AArch64 objects * "file format " line can be extracted and fed into llvm-objcopy -O literally. (https://github.com/ClangBuiltLinux/linux/issues/779 has such a use case) Affected tools: llvm-readobj, llvm-objdump, llvm-dwarfdump, MCJIT (internal implementation detail, not exposed) Reviewed By: jhenderson Differential Revision: https://reviews.llvm.org/D76046
This commit is contained in:
parent
7938bbf00b
commit
bb43600d6c
@ -1060,59 +1060,59 @@ StringRef ELFObjectFile<ELFT>::getFileFormatName() const {
|
||||
case ELF::ELFCLASS32:
|
||||
switch (EF.getHeader()->e_machine) {
|
||||
case ELF::EM_386:
|
||||
return "ELF32-i386";
|
||||
return "elf32-i386";
|
||||
case ELF::EM_IAMCU:
|
||||
return "ELF32-iamcu";
|
||||
return "elf32-iamcu";
|
||||
case ELF::EM_X86_64:
|
||||
return "ELF32-x86-64";
|
||||
return "elf32-x86-64";
|
||||
case ELF::EM_ARM:
|
||||
return (IsLittleEndian ? "ELF32-arm-little" : "ELF32-arm-big");
|
||||
return (IsLittleEndian ? "elf32-littlearm" : "elf32-bigarm");
|
||||
case ELF::EM_AVR:
|
||||
return "ELF32-avr";
|
||||
return "elf32-avr";
|
||||
case ELF::EM_HEXAGON:
|
||||
return "ELF32-hexagon";
|
||||
return "elf32-hexagon";
|
||||
case ELF::EM_LANAI:
|
||||
return "ELF32-lanai";
|
||||
return "elf32-lanai";
|
||||
case ELF::EM_MIPS:
|
||||
return "ELF32-mips";
|
||||
return "elf32-mips";
|
||||
case ELF::EM_MSP430:
|
||||
return "ELF32-msp430";
|
||||
return "elf32-msp430";
|
||||
case ELF::EM_PPC:
|
||||
return "ELF32-ppc";
|
||||
return "elf32-powerpc";
|
||||
case ELF::EM_RISCV:
|
||||
return "ELF32-riscv";
|
||||
return "elf32-littleriscv";
|
||||
case ELF::EM_SPARC:
|
||||
case ELF::EM_SPARC32PLUS:
|
||||
return "ELF32-sparc";
|
||||
return "elf32-sparc";
|
||||
case ELF::EM_AMDGPU:
|
||||
return "ELF32-amdgpu";
|
||||
return "elf32-amdgpu";
|
||||
default:
|
||||
return "ELF32-unknown";
|
||||
return "elf32-unknown";
|
||||
}
|
||||
case ELF::ELFCLASS64:
|
||||
switch (EF.getHeader()->e_machine) {
|
||||
case ELF::EM_386:
|
||||
return "ELF64-i386";
|
||||
return "elf64-i386";
|
||||
case ELF::EM_X86_64:
|
||||
return "ELF64-x86-64";
|
||||
return "elf64-x86-64";
|
||||
case ELF::EM_AARCH64:
|
||||
return (IsLittleEndian ? "ELF64-aarch64-little" : "ELF64-aarch64-big");
|
||||
return (IsLittleEndian ? "elf64-littleaarch64" : "elf64-bigaarch64");
|
||||
case ELF::EM_PPC64:
|
||||
return "ELF64-ppc64";
|
||||
return "elf64-powerpc";
|
||||
case ELF::EM_RISCV:
|
||||
return "ELF64-riscv";
|
||||
return "elf64-littleriscv";
|
||||
case ELF::EM_S390:
|
||||
return "ELF64-s390";
|
||||
return "elf64-s390";
|
||||
case ELF::EM_SPARCV9:
|
||||
return "ELF64-sparc";
|
||||
return "elf64-sparc";
|
||||
case ELF::EM_MIPS:
|
||||
return "ELF64-mips";
|
||||
return "elf64-mips";
|
||||
case ELF::EM_AMDGPU:
|
||||
return "ELF64-amdgpu";
|
||||
return "elf64-amdgpu";
|
||||
case ELF::EM_BPF:
|
||||
return "ELF64-BPF";
|
||||
return "elf64-bpf";
|
||||
default:
|
||||
return "ELF64-unknown";
|
||||
return "elf64-unknown";
|
||||
}
|
||||
default:
|
||||
// FIXME: Proper error handling.
|
||||
|
@ -554,7 +554,7 @@ void RuntimeDyldELF::setMipsABI(const ObjectFile &Obj) {
|
||||
IsMipsO32ABI = AbiVariant & ELF::EF_MIPS_ABI_O32;
|
||||
IsMipsN32ABI = AbiVariant & ELF::EF_MIPS_ABI2;
|
||||
}
|
||||
IsMipsN64ABI = Obj.getFileFormatName().equals("ELF64-mips");
|
||||
IsMipsN64ABI = Obj.getFileFormatName().equals("elf64-mips");
|
||||
}
|
||||
|
||||
// Return the .TOC. section and offset.
|
||||
|
@ -11,7 +11,7 @@ define void @foo() nounwind {
|
||||
|
||||
; Similarly make sure ELF output works and is vaguely sane: aarch64 target
|
||||
; machine with correct section & symbol names.
|
||||
; CHECK-ELF: file format elf64-aarch64
|
||||
; CHECK-ELF: file format elf64-littleaarch64
|
||||
|
||||
; CHECK-ELF: Disassembly of section .text
|
||||
; CHECK-ELF-LABEL: <foo>:
|
||||
|
@ -8,7 +8,7 @@
|
||||
; Test that we don't try to produce a COFF file on windows
|
||||
; RUN: llc < %s -mtriple=amdgcn-pc-mingw -verify-machineinstrs -filetype=obj | llvm-readobj -S --symbols --file-headers - | FileCheck --check-prefix=ELF %s
|
||||
|
||||
; ELF: Format: ELF64-amdgpu
|
||||
; ELF: Format: elf64-amdgpu
|
||||
; ELF: OS/ABI: SystemV (0x0)
|
||||
; ELF: Machine: EM_AMDGPU (0xE0)
|
||||
; ELF: Name: .AMDGPU.config
|
||||
|
@ -1,7 +1,7 @@
|
||||
; RUN: llc < %s -march=r600 -mcpu=redwood -filetype=obj | llvm-readobj -S - | FileCheck --check-prefix=ELF %s
|
||||
; RUN: llc < %s -march=r600 -mcpu=redwood -o - | FileCheck --check-prefix=CONFIG %s
|
||||
|
||||
; ELF: Format: ELF32-amdgpu
|
||||
; ELF: Format: elf32-amdgpu
|
||||
; ELF: Name: .AMDGPU.config
|
||||
|
||||
; CONFIG: .section .AMDGPU.config
|
||||
|
@ -1,6 +1,6 @@
|
||||
; RUN: llc -O0 -filetype=obj -mtriple=aarch64_be-none-linux < %s | llvm-dwarfdump - | FileCheck %s
|
||||
|
||||
; CHECK: file format ELF64-aarch64-big
|
||||
; CHECK: file format elf64-bigaarch64
|
||||
|
||||
target datalayout = "E-m:e-i64:64-i128:128-n32:64-S128"
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
; RUN: llc -O0 -filetype=obj -mtriple=aarch64-none-linux < %s | llvm-dwarfdump - | FileCheck %s
|
||||
|
||||
; CHECK: file format ELF64-aarch64-little
|
||||
; CHECK: file format elf64-littleaarch64
|
||||
|
||||
target datalayout = "e-m:e-i64:64-i128:128-n32:64-S128"
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
; RUN: llc -O0 -filetype=obj -mtriple=armeb-none-linux < %s | llvm-dwarfdump - | FileCheck %s
|
||||
|
||||
; CHECK: file format ELF32-arm-big
|
||||
; CHECK: file format elf32-bigarm
|
||||
|
||||
target datalayout = "E-m:e-p:32:32-i64:64-v128:64:128-n32-S64"
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
; RUN: llc -O0 -filetype=obj -mtriple=arm-none-linux < %s | llvm-dwarfdump - | FileCheck %s
|
||||
|
||||
; CHECK: file format ELF32-arm-little
|
||||
; CHECK: file format elf32-littlearm
|
||||
|
||||
target datalayout = "e-m:e-p:32:32-i64:64-v128:64:128-n32-S64"
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
; Check for DW_CFA_GNU_Window_save in debug_frame. Also, Ensure that relocations
|
||||
; are performed correctly in debug_info.
|
||||
|
||||
; SPARC64: file format ELF64-sparc
|
||||
; SPARC64: file format elf64-sparc
|
||||
|
||||
; SPARC64: .debug_info
|
||||
; SPARC64: DW_TAG_compile_unit
|
||||
@ -20,7 +20,7 @@
|
||||
; SPARC64-NEXT: DW_CFA_register
|
||||
|
||||
|
||||
; SPARC32: file format ELF32-sparc
|
||||
; SPARC32: file format elf32-sparc
|
||||
|
||||
; SPARC32: .debug_info
|
||||
; SPARC32: DW_TAG_compile_unit
|
||||
|
@ -8,7 +8,7 @@
|
||||
a:
|
||||
.long 42
|
||||
|
||||
// DWARF: ELF32-arm-little
|
||||
// DWARF: elf32-littlearm
|
||||
// DWARF-NOT: contents:
|
||||
// DWARF: .debug_line contents:
|
||||
|
||||
|
@ -8,7 +8,7 @@
|
||||
a:
|
||||
.long 42
|
||||
|
||||
// DWARF: ELF32-avr
|
||||
// DWARF: elf32-avr
|
||||
// DWARF-NOT: contents:
|
||||
// DWARF: .debug_line contents:
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
# RUN: llvm-mc -triple i386-linux-gnu -filetype=obj -o %t \
|
||||
# RUN: %S/Inputs/non-english-characters-comments.s
|
||||
# RUN: llvm-readobj %t | FileCheck %s
|
||||
# CHECK: Format: ELF32-i386
|
||||
# CHECK: Format: elf32-i386
|
||||
|
||||
# RUN: not llvm-mc -triple i386-linux-gnu -filetype=obj -o %t \
|
||||
# RUN: %S/Inputs/non-english-characters-section-name.s 2>&1 | \
|
||||
|
@ -5,8 +5,8 @@
|
||||
// Check that we can create ELF files for darwin/windows, even though
|
||||
// it is not the default file format.
|
||||
|
||||
// DARWIN: Format: ELF64-x86-64
|
||||
// WINDOWS: Format: ELF64-x86-64
|
||||
// DARWIN: Format: elf64-x86-64
|
||||
// WINDOWS: Format: elf64-x86-64
|
||||
// DARWIN-NEXT: Arch: x86_64
|
||||
// WINDOWS-NEXT: Arch: x86_64
|
||||
|
||||
|
@ -4,8 +4,8 @@
|
||||
// Test that we produce the correct relocation types and that the relocations
|
||||
// correctly point to the section or the symbol.
|
||||
|
||||
// IAMCU: Format: ELF32-iamcu
|
||||
// I386: Format: ELF32-i386
|
||||
// IAMCU: Format: elf32-iamcu
|
||||
// I386: Format: elf32-i386
|
||||
// CHECK: Relocations [
|
||||
// CHECK-NEXT: Section {{.*}} .rel.text {
|
||||
// CHECK-NEXT: 0x2 R_386_GOTOFF .Lfoo 0x0
|
||||
|
@ -1,7 +1,7 @@
|
||||
;; RUN: llc -mtriple=hexagon-unknown-elf -filetype=obj %s -o - \
|
||||
;; RUN: | llvm-readobj -h -r | FileCheck -check-prefix=OBJ %s
|
||||
|
||||
; OBJ: Format: ELF32-hexagon
|
||||
; OBJ: Format: elf32-hexagon
|
||||
; OBJ: Arch: hexagon
|
||||
; OBJ: AddressSize: 32bit
|
||||
; OBJ: Machine: EM_HEXAGON (0xA4)
|
||||
|
@ -3,7 +3,7 @@
|
||||
# RUN: llvm-mc %s -filetype=obj -triple=riscv64 | llvm-readobj -h \
|
||||
# RUN: | FileCheck -check-prefix=RV64 %s
|
||||
|
||||
# RV32: Format: ELF32-riscv
|
||||
# RV32: Format: elf32-littleriscv
|
||||
# RV32: Arch: riscv32
|
||||
# RV32: AddressSize: 32bit
|
||||
# RV32: ElfHeader {
|
||||
@ -22,7 +22,7 @@
|
||||
# RV32: ]
|
||||
# RV32: }
|
||||
|
||||
# RV64: Format: ELF64-riscv
|
||||
# RV64: Format: elf64-littleriscv
|
||||
# RV64: Arch: riscv64
|
||||
# RV64: AddressSize: 64bit
|
||||
# RV64: ElfHeader {
|
||||
|
@ -1,7 +1,7 @@
|
||||
! RUN: llvm-mc %s -arch=sparcv9 -show-encoding | FileCheck %s
|
||||
! RUN: llvm-mc %s -arch=sparcv9 -filetype=obj | llvm-readobj -r | FileCheck %s --check-prefix=CHECK-OBJ
|
||||
|
||||
! CHECK-OBJ: Format: ELF64-sparc
|
||||
! CHECK-OBJ: Format: elf64-sparc
|
||||
! CHECK-OBJ: Relocations [
|
||||
! CHECK-OBJ: 0x{{[0-9,A-F]+}} R_SPARC_WDISP30 foo
|
||||
! CHECK-OBJ: 0x{{[0-9,A-F]+}} R_SPARC_LO10 sym
|
||||
|
@ -1,7 +1,7 @@
|
||||
# RUN: yaml2obj %s -o %t.o
|
||||
# RUN: llvm-readobj -S --file-headers %t.o | FileCheck %s
|
||||
|
||||
# CHECK: Format: ELF32-amdgpu
|
||||
# CHECK: Format: elf32-amdgpu
|
||||
|
||||
--- !ELF
|
||||
FileHeader:
|
||||
|
@ -1,7 +1,7 @@
|
||||
# RUN: yaml2obj %s -o %t.o
|
||||
# RUN: llvm-readobj -S --file-headers %t.o | FileCheck %s
|
||||
|
||||
# CHECK: Format: ELF64-amdgpu
|
||||
# CHECK: Format: elf64-amdgpu
|
||||
|
||||
--- !ELF
|
||||
FileHeader:
|
||||
|
@ -1,7 +1,7 @@
|
||||
# RUN: yaml2obj %s -o %t.o
|
||||
# RUN: llvm-readobj -r %t.o 2>&1 | FileCheck %s
|
||||
|
||||
# CHECK: Format: ELF64-x86-64
|
||||
# CHECK: Format: elf64-x86-64
|
||||
# CHECK-NEXT: Arch: x86_64
|
||||
# CHECK-NEXT: AddressSize: 64bit
|
||||
# CHECK-NEXT: LoadName:
|
||||
|
@ -5,7 +5,7 @@
|
||||
; RUN: llvm-readobj -h %t2.0 | FileCheck %s
|
||||
; RUN: llvm-nm %t2.0 2>&1 | count 0
|
||||
|
||||
; CHECK: Format: ELF64-x86-64
|
||||
; CHECK: Format: elf64-x86-64
|
||||
|
||||
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
|
||||
target triple = "x86_64-unknown-linux-gnu"
|
||||
|
@ -87,7 +87,7 @@
|
||||
|
||||
; NM: T f
|
||||
; NM2: T {{f|g}}
|
||||
; FORMAT: Format: ELF64-x86-64
|
||||
; FORMAT: Format: elf64-x86-64
|
||||
|
||||
; The backend index for this module contains summaries from itself and
|
||||
; Inputs/thinlto.ll, as it imports from the latter.
|
||||
|
@ -31,16 +31,16 @@
|
||||
# RUN: llvm-readobj --file-headers %t.sparcel.o | FileCheck %s --check-prefixes=CHECK,LE,SPARCEL,32
|
||||
|
||||
# CHECK: Format:
|
||||
# 32-SAME: ELF32-
|
||||
# 64-SAME: ELF64-
|
||||
# AARCH64-SAME: aarch64-little
|
||||
# ARM-SAME: arm-little
|
||||
# 32-SAME: elf32-
|
||||
# 64-SAME: elf64-
|
||||
# AARCH64-SAME: littleaarch64
|
||||
# ARM-SAME: littlearm
|
||||
# I386-SAME: i386
|
||||
# MIPS-SAME: mips{{$}}
|
||||
# RISCV32-SAME: riscv{{$}}
|
||||
# RISCV64-SAME: riscv{{$}}
|
||||
# PPC-SAME: ppc{{$}}
|
||||
# PPC64le-SAME: ppc64
|
||||
# PPC-SAME: powerpc{{$}}
|
||||
# PPC64le-SAME: powerpc{{$}}
|
||||
# SPARC-SAME: sparc
|
||||
# SPARCEL-SAME: sparc
|
||||
# X86-64-SAME: x86-64
|
||||
|
@ -133,16 +133,16 @@ Symbols:
|
||||
Binding: STB_GLOBAL
|
||||
|
||||
# CHECK: Format:
|
||||
# 32-SAME: ELF32-
|
||||
# 64-SAME: ELF64-
|
||||
# 32-SAME: elf32-
|
||||
# 64-SAME: elf64-
|
||||
# I386-SAME: i386
|
||||
# IAMCU-SAME: iamcu
|
||||
# AARCH-SAME: aarch64
|
||||
# ARM-SAME: arm-little
|
||||
# ARM-SAME: littlearm
|
||||
# MIPS-SAME: mips
|
||||
# PPC-SAME: ppc{{$}}
|
||||
# PPC64BE-SAME: ppc64{{$}}
|
||||
# PPC64LE-SAME: ppc64{{$}}
|
||||
# PPC-SAME: powerpc{{$}}
|
||||
# PPC64BE-SAME: powerpc{{$}}
|
||||
# PPC64LE-SAME: powerpc{{$}}
|
||||
# RISCV32-SAME: riscv{{$}}
|
||||
# RISCV64-SAME: riscv{{$}}
|
||||
# SPARC-SAME: sparc
|
||||
|
@ -5,7 +5,7 @@ RUN: llvm-readobj --sections %t2 | FileCheck --check-prefix=SECS %s
|
||||
RUN: llvm-readobj --symbols %t2 | grep "Symbol {" | wc -l | FileCheck --check-prefix=SYMS %s
|
||||
RUN: llvm-readobj --symbols %t2 | FileCheck %s --check-prefix=SYM_SEC_IDS
|
||||
|
||||
EHDR: Format: ELF64-x86-64
|
||||
EHDR: Format: elf64-x86-64
|
||||
EHDR-NEXT: Arch: x86_64
|
||||
EHDR-NEXT: AddressSize: 64bit
|
||||
EHDR-NEXT: LoadName:
|
||||
|
@ -2,7 +2,7 @@
|
||||
# RUN: llvm-readobj -a %t.o | FileCheck %s --check-prefix LLVM-ALL
|
||||
# RUN: llvm-readobj --all %t.o | FileCheck %s --check-prefix LLVM-ALL
|
||||
|
||||
# LLVM-ALL: Format: ELF32-i386
|
||||
# LLVM-ALL: Format: elf32-i386
|
||||
# LLVM-ALL: Arch: i386
|
||||
# LLVM-ALL: AddressSize: 32bit
|
||||
# LLVM-ALL: LoadName:
|
||||
|
@ -1,6 +1,6 @@
|
||||
RUN: llvm-readobj --file-headers -l -S --symbols %p/Inputs/trivial.obj.elf-amdhsa-gfx803 | FileCheck %s
|
||||
|
||||
CHECK: Format: ELF64-amdgpu
|
||||
CHECK: Format: elf64-amdgpu
|
||||
CHECK: Arch: unknown
|
||||
CHECK: ElfHeader {
|
||||
CHECK: Ident {
|
||||
|
@ -5,7 +5,7 @@
|
||||
# RUN: llvm-readelf %t.trivial.obj.elf-x86-64 | FileCheck --check-prefix=NO-OUTPUT --allow-empty %s
|
||||
|
||||
# HEADER: File: {{.*}}trivial.obj.elf-x86-64
|
||||
# HEADER: Format: ELF64-x86-64
|
||||
# HEADER: Format: elf64-x86-64
|
||||
# HEADER: Arch: x86_64
|
||||
# HEADER: AddressSize: 64bit
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
# RUN: llvm-readelf --dynamic-table %t.no-phdr | FileCheck %s --check-prefix=GNU
|
||||
|
||||
# LLVM: File: {{.*}}.no-phdr
|
||||
# LLVM-NEXT: Format: ELF64-x86-64
|
||||
# LLVM-NEXT: Format: elf64-x86-64
|
||||
# LLVM-NEXT: Arch: x86_64
|
||||
# LLVM-NEXT: AddressSize: 64bit
|
||||
# LLVM-NEXT: LoadName:{{ *}}
|
||||
|
@ -4,7 +4,7 @@
|
||||
# RUN: llvm-readobj --file-headers %t.i386 | FileCheck %s --strict-whitespace --match-full-lines -DFILE=%t.i386 --check-prefix I386
|
||||
|
||||
# I386:File: [[FILE]]
|
||||
# I386-NEXT:Format: ELF32-i386
|
||||
# I386-NEXT:Format: elf32-i386
|
||||
# I386-NEXT:Arch: i386
|
||||
# I386-NEXT:AddressSize: 32bit
|
||||
# I386-NEXT:LoadName: <Not found>
|
||||
@ -52,7 +52,7 @@ FileHeader:
|
||||
# RUN: | FileCheck %s --strict-whitespace --match-full-lines -DFILE=%t.x86-64 --check-prefix X86-64
|
||||
|
||||
# X86-64:File: [[FILE]]
|
||||
# X86-64-NEXT:Format: ELF64-x86-64
|
||||
# X86-64-NEXT:Format: elf64-x86-64
|
||||
# X86-64-NEXT:Arch: x86_64
|
||||
# X86-64-NEXT:AddressSize: 64bit
|
||||
# X86-64-NEXT:LoadName: <Not found>
|
||||
@ -107,7 +107,7 @@ FileHeader:
|
||||
Machine: EM_LANAI
|
||||
|
||||
# LANAI:File: [[FILE]]
|
||||
# LANAI-NEXT:Format: ELF32-lanai
|
||||
# LANAI-NEXT:Format: elf32-lanai
|
||||
# LANAI-NEXT:Arch: lanai
|
||||
# LANAI-NEXT:AddressSize: 32bit
|
||||
# LANAI-NEXT:LoadName: <Not found>
|
||||
|
@ -4,7 +4,7 @@
|
||||
# RUN: llvm-readobj %t.o | FileCheck %s --check-prefix LLVM
|
||||
# RUN: llvm-readelf --dynamic-table %t.o | FileCheck %s --check-prefix GNU
|
||||
|
||||
# LLVM: Format: ELF64-x86-64
|
||||
# LLVM: Format: elf64-x86-64
|
||||
# LLVM-NEXT: Arch: x86_64
|
||||
# LLVM-NEXT: AddressSize: 64bit
|
||||
# LLVM-NEXT: LoadName: test.so
|
||||
|
@ -7,7 +7,7 @@
|
||||
# RUN: llvm-readelf %t.exe | FileCheck %s -DFILE=%t.exe --check-prefix GNU --allow-empty
|
||||
|
||||
# LLVM: File: [[FILE]]
|
||||
# LLVM: Format: ELF64-x86-64
|
||||
# LLVM: Format: elf64-x86-64
|
||||
# LLVM: Arch: x86_64
|
||||
# LLVM: AddressSize: 64bit
|
||||
# LLVM: LoadName: <Not found>{{$}}
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
RUN: llvm-readobj --dynamic-table %p/Inputs/ppc64.exe | FileCheck %s
|
||||
|
||||
CHECK: Format: ELF64-ppc64
|
||||
CHECK: Format: elf64-powerpc
|
||||
CHECK: Arch: powerpc64le
|
||||
CHECK: AddressSize: 64bit
|
||||
|
||||
|
@ -79,7 +79,7 @@
|
||||
# RUN: llvm-readobj -l %p/../../../Object/Inputs/program-headers.mips \
|
||||
# RUN: | FileCheck %s -check-prefix ELF-MIPS
|
||||
|
||||
# ELF-MIPS: Format: ELF32-mips
|
||||
# ELF-MIPS: Format: elf32-mips
|
||||
# ELF-MIPS-NEXT: Arch: mips
|
||||
# ELF-MIPS-NEXT: AddressSize: 32bit
|
||||
# ELF-MIPS-NEXT: LoadName:
|
||||
@ -126,7 +126,7 @@
|
||||
# RUN: llvm-readobj -l %p/../../../Object/Inputs/program-headers.mips64 \
|
||||
# RUN: | FileCheck %s -check-prefix ELF-MIPS64
|
||||
|
||||
# ELF-MIPS64: Format: ELF64-mips
|
||||
# ELF-MIPS64: Format: elf64-mips
|
||||
# ELF-MIPS64-NEXT: Arch: mips64
|
||||
# ELF-MIPS64-NEXT: AddressSize: 64bit
|
||||
# ELF-MIPS64-NEXT: LoadName:
|
||||
|
@ -13,7 +13,7 @@
|
||||
|
||||
# LLVM: {{^$}}
|
||||
# LLVM-NEXT: File: [[ARFILE]](trivial.obj.elf-x86-64)
|
||||
# LLVM: Format: ELF64-x86-64
|
||||
# LLVM: Format: elf64-x86-64
|
||||
# LLVM: ElfHeader {
|
||||
# LLVM: Machine: EM_X86_64
|
||||
# LLVM: Sections [
|
||||
@ -33,7 +33,7 @@
|
||||
|
||||
# LLVM-EMPTY:
|
||||
# LLVM-NEXT: File: [[ARFILE]](trivial.obj.elf-i386)
|
||||
# LLVM: Format: ELF32-i386
|
||||
# LLVM: Format: elf32-i386
|
||||
# LLVM: ElfHeader {
|
||||
# LLVM: Machine: EM_386
|
||||
# LLVM: Sections [
|
||||
|
@ -11,7 +11,7 @@
|
||||
# RUN: llvm-readelf --all %t.a | FileCheck %s --check-prefixes=GNU,COFF
|
||||
|
||||
# LLVM: File: {{.*}}1.o
|
||||
# LLVM: Format: ELF64-x86-64
|
||||
# LLVM: Format: elf64-x86-64
|
||||
# LLVM: ElfHeader {
|
||||
# LLVM: SectionHeaderCount: 3
|
||||
# LLVM: Sections [
|
||||
@ -23,7 +23,7 @@
|
||||
# GNU: Section Headers:
|
||||
|
||||
# LLVM: File: {{.*}}2.o
|
||||
# LLVM: Format: ELF32-i386
|
||||
# LLVM: Format: elf32-i386
|
||||
# LLVM: ElfHeader {
|
||||
# LLVM: SectionHeaderCount: 4
|
||||
# LLVM: Sections [
|
||||
@ -48,9 +48,9 @@
|
||||
# RUN: llvm-readobj --file-headers %t.a | FileCheck %s --check-prefix=RESIZED
|
||||
|
||||
# RESIZED: File: {{.*}}1.o
|
||||
# RESIZED: Format: ELF64-x86-64
|
||||
# RESIZED: Format: elf64-x86-64
|
||||
# RESIZED: File: {{.*}}2.o
|
||||
# RESIZED: Format: ELF64-x86-64
|
||||
# RESIZED: Format: elf64-x86-64
|
||||
|
||||
# Remove the second member and show that the first can still be dumped, but that the last isn't.
|
||||
# RUN: rm %t/2.o
|
||||
@ -58,7 +58,7 @@
|
||||
# RUN: FileCheck %s --check-prefix=ERR --input-file=%t.err
|
||||
|
||||
# MISSING: File: {{.*}}1.o
|
||||
# MISSING: Format: ELF64-x86-64
|
||||
# MISSING: Format: elf64-x86-64
|
||||
# MISSING-NOT: File: {{.*}}3.o
|
||||
# ERR: error: '{{.*}}.a': '{{.*}}2.o': {{[Nn]}}o such file or directory
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user