mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
bb43600d6c
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
20 lines
592 B
ArmAsm
20 lines
592 B
ArmAsm
// RUN: llvm-mc < %s -triple=armv7-linux-gnueabi -filetype=obj -o %t -g -fdebug-compilation-dir=/tmp
|
|
// RUN: llvm-dwarfdump -v %t | FileCheck -check-prefix DWARF %s
|
|
// RUN: llvm-objdump -r %t | FileCheck --check-prefix=RELOC %s
|
|
|
|
// If there is no code in an assembly file, no debug info is produced
|
|
|
|
.section .data, "aw"
|
|
a:
|
|
.long 42
|
|
|
|
// DWARF: elf32-littlearm
|
|
// DWARF-NOT: contents:
|
|
// DWARF: .debug_line contents:
|
|
|
|
// RELOC-NOT: RELOCATION RECORDS FOR [.rel.debug_info]:
|
|
|
|
// RELOC-NOT: RELOCATION RECORDS FOR [.rel.debug_ranges]:
|
|
|
|
// RELOC-NOT: RELOCATION RECORDS FOR [.rel.debug_aranges]:
|