1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 03:02:36 +01:00
llvm-mirror/test/MC/ELF
Fangrui Song bb43600d6c [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
2020-03-16 07:42:04 -07:00
..
ARM Revert "Revert "Reland "[Support] make report_fatal_error abort instead of exit""" 2020-02-13 10:16:06 -08:00
abs.s
addrsig-error.s
addrsig.s
alias-reloc.s
alias-to-local.s
alias.s
align-bss.s
align-nops.s
align-size.s
align-text.s
align-zero.s
align.s
bad-expr2.s
bad-expr3.s
bad-expr.s
bad-relocation.s
bad-section.s
basic-elf-32.s
basic-elf-64.s [llvm-mc] - Produce R_X86_64_PLT32 relocation for branches with JCC opcodes too. 2020-01-20 11:42:19 +03:00
bracket-exprs.s
bracket.s
bss-large.ll
bss.ll
call-abs.s
cfi-adjust-cfa-offset.s
cfi-advance-loc2.s
cfi-b-key-frame.s
cfi-def-cfa-offset.s
cfi-def-cfa-register.s
cfi-def-cfa.s
cfi-escape.s
cfi-large-model.s
cfi-offset.s
cfi-reg.s
cfi-register.s
cfi-rel-offset2.s
cfi-rel-offset.s
cfi-remember.s
cfi-restore-extended.s
cfi-restore.s
cfi-same-value.s
cfi-sections.s
cfi-signal-frame.s
cfi-undefined.s
cfi-version.ll
cfi-window-save.s
cfi-zero-addr-delta.s
cfi.s
cgprofile-error.s
cgprofile.ll
cgprofile.s
comdat-declaration-errors.s
comdat-name-number.s
comdat-reloc.s
comdat.s
common2.s
common-error1.s
common-error2.s
common-error3.s Revert "Revert "Reland "[Support] make report_fatal_error abort instead of exit""" 2020-02-13 10:16:06 -08:00
common-redeclare.s [MC][test] Improve some llvm-objdump -t tests 2020-03-03 17:27:06 -08:00
common.s
comp-dir.s
compression.s
debug-file-options.s
debug-hash-file.s
debug-line2.s
debug-line.s
debug-loc.s
debug-main-file.s
debug-md5-err.s
debug-md5.s
debug-mixed-md5.ll
debug-prefix-map.s
debug-source.s
diff2.s
diff.s
discriminator.s
div-by-zero.s
dot-symbol-assignment.s
dwarf-file0.s
dwarf-loc0.s
dwo-restrict-relocs.s
dwo-sections.s
elf_directive_previous.s
elf_directive_section.s
empty-dwarf-lines.s
empty-twice.ll
empty.s [Object] Change ELFObjectFile<ELFT>::getFileFormatName() to use BFD names 2020-03-16 07:42:04 -07:00
entsize.ll
entsize.s
exclude-debug-dwo.s [MC][ELF] Error for sh_type, sh_flags or sh_entsize change 2020-02-21 15:44:14 -08:00
fde.s
file-double.s
file.s
gen-dwarf.s
global-offset.s
gnu-type-diagnostics.s
gnu-type.s
got-relaxed-i386.s
got-relaxed-no-relax.s
got-relaxed-rex.s
got-relaxed.s
got.s
ident.s
ifunc-alias.s
ifunc-reloc.s
invalid-symver.s
lcomm.s
leb128.s
lit.local.cfg
local-reloc.s
many-sections-2.s
many-sections-3.s
many-sections.s
merge.s
multiple-different-symver.s
multiple-equiv-symver.s
n_bytes.s
no-fixup.s
no-reloc.s
nocompression.s
noexec.s
norelocation.s
offset.s
org.s
pic-diff.s
plt.s
popsection.s
pr9292.s
pr19430.s
pr19582.s
relax-all-flag.s [test] llvm/test/: change llvm-objdump single-dash long options to double-dash options 2020-03-15 17:46:23 -07:00
relax-arith2.s [llvm-objdump] -d: print 00000000 <foo>: instead of 00000000 foo: 2020-03-05 18:05:28 -08:00
relax-arith3.s [llvm-objdump] -d: print 00000000 <foo>: instead of 00000000 foo: 2020-03-05 18:05:28 -08:00
relax-arith4.s [llvm-objdump] -d: print 00000000 <foo>: instead of 00000000 foo: 2020-03-05 18:05:28 -08:00
relax-arith.s [llvm-objdump] -d: print 00000000 <foo>: instead of 00000000 foo: 2020-03-05 18:05:28 -08:00
relax-crash.s
reloc-same-name-section.s
relocation-386.s [Object] Change ELFObjectFile<ELFT>::getFileFormatName() to use BFD names 2020-03-16 07:42:04 -07:00
relocation-pc.s
relocation.s
rename.s
section-combine.s [MC][ELF] Make linked-to symbol name part of ELFSectionKey 2020-02-14 20:03:04 -08:00
section-entsize-changed.s [MC][ELF] Error for sh_type, sh_flags or sh_entsize change 2020-02-21 15:44:14 -08:00
section-flags-changed.s [MC][ELF] Error for sh_type, sh_flags or sh_entsize change 2020-02-21 15:44:14 -08:00
section-linkorder-error.s [MC][ELF] Rename MC related "Associated" to "LinkedToSym" 2020-02-06 11:31:04 -08:00
section-numeric-flag.s
section-numeric-invalid-type.s Revert "Revert "Reland "[Support] make report_fatal_error abort instead of exit""" 2020-02-13 10:16:06 -08:00
section-numeric-type.s
section-quoting.s
section-relro.ll
section-sym2.s
section-sym-err2.s
section-sym-err.s
section-sym.s
section-type-changed.s [MC][ELF] Error for sh_type, sh_flags or sh_entsize change 2020-02-21 15:44:14 -08:00
section-unique-err1.s
section-unique-err2.s
section-unique-err3.s
section-unique-err4.s
section-unique.s
section.s
set.s
size.s
sleb.s
strtab-suffix-opt.s
subsection.s
subtraction-error.s
symbol-names.s
symver-msvc.s
symver-pr23914.s
symver.s
target-in-same-section.s
tls-i386.s
tls.s
type-propagate.s
type.s
uleb-ehtable.s
uleb.s
undef-temp.s
undef.s
undefined-debug.s
undefined-directional.s
version.s
weak-diff.s
weak-relocation.s
weak.s
weakref-plt.s
weakref-reloc.s
weakref.s
x86_64-reloc-sizetest.s
zero.s