mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
373457fb8b
Match GNU readelf. https://bugs.llvm.org/show_bug.cgi?id=35351 Reviewers: jhenderson, grimar, MaskRay, rupprecht Reviewed by: jhenderson, MaskRay, grimar Differential Revision: https://reviews.llvm.org/D64361 llvm-svn: 366147
58 lines
1.6 KiB
Plaintext
58 lines
1.6 KiB
Plaintext
# Show that dumping operations apply to all members in an archive.
|
|
|
|
# RUN: rm -f %t.a
|
|
# RUN: llvm-ar rc %t.a %p/Inputs/trivial.obj.elf-x86-64 %p/Inputs/trivial.obj.elf-i386 %p/Inputs/trivial.obj.coff-arm
|
|
# RUN: llvm-readobj --all %t.a | FileCheck %s -DARFILE="%t.a" --check-prefixes=HEADER,LLVM,COFF
|
|
# RUN: llvm-readelf --all %t.a | FileCheck %s -DARFILE="%t.a" --check-prefixes=HEADER,GNU,COFF
|
|
|
|
# LLVM: {{^$}}
|
|
# LLVM-NEXT: File: [[ARFILE]](trivial.obj.elf-x86-64)
|
|
# LLVM: Format: ELF64-x86-64
|
|
# LLVM: ElfHeader {
|
|
# LLVM: Machine: EM_X86_64
|
|
# LLVM: Sections [
|
|
# LLVM: Relocations [
|
|
# LLVM: Symbols [
|
|
# LLVM: Notes [
|
|
# LLVM: ]
|
|
|
|
# GNU: {{^$}}
|
|
# GNU-NEXT: File: [[ARFILE]](trivial.obj.elf-x86-64)
|
|
# GNU: ELF Header:
|
|
# GNU: Machine: Advanced Micro Devices X86-64
|
|
# GNU: Section Headers:
|
|
# GNU: Relocation section '.rela.text'
|
|
# GNU: Symbol table '.symtab'
|
|
# GNU: There are no section groups in this file.
|
|
|
|
# LLVM-EMPTY:
|
|
# LLVM-NEXT: File: [[ARFILE]](trivial.obj.elf-i386)
|
|
# LLVM: Format: ELF32-i386
|
|
# LLVM: ElfHeader {
|
|
# LLVM: Machine: EM_386
|
|
# LLVM: Sections [
|
|
# LLVM: Relocations [
|
|
# LLVM: Symbols [
|
|
# LLVM: Notes [
|
|
# LLVM: ]
|
|
|
|
# GNU-EMPTY:
|
|
# GNU-NEXT: File: [[ARFILE]](trivial.obj.elf-i386)
|
|
# GNU: ELF Header:
|
|
# GNU: Machine: Intel 80386
|
|
# GNU: Section Headers:
|
|
# GNU: Relocation section '.rel.text'
|
|
# GNU: Symbol table '.symtab'
|
|
# GNU: There are no section groups in this file.
|
|
|
|
# LLVM-EMPTY:
|
|
# LLVM-NEXT: File: [[ARFILE]](trivial.obj.coff-arm)
|
|
# LLVM: Format: COFF-ARM
|
|
# GNU-EMPTY:
|
|
# GNU-NEXT: File: [[ARFILE]](trivial.obj.coff-arm)
|
|
# COFF: ImageFileHeader {
|
|
# COFF: Machine: IMAGE_FILE_MACHINE_ARMNT
|
|
# COFF: Sections [
|
|
# COFF: Relocations [
|
|
# COFF: Symbols [
|