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
..
2020-03-02 14:02:13 -08:00
2019-05-29 16:50:46 +00:00
2019-09-10 23:15:38 +00:00
2019-04-17 17:38:09 +00:00
2019-09-10 23:15:38 +00:00
2019-09-10 23:15:38 +00:00
2019-09-10 23:15:38 +00:00
2019-09-10 23:15:38 +00:00
2019-09-10 23:15:38 +00:00
2020-01-27 07:55:05 -08:00
2019-09-10 23:15:38 +00:00
2019-09-10 23:15:38 +00:00
2020-01-27 07:55:05 -08:00
2019-09-10 23:15:38 +00:00
2019-09-10 23:15:38 +00:00
2019-09-10 23:15:38 +00:00
2019-09-10 23:15:38 +00:00
2019-09-10 23:15:38 +00:00
2019-09-10 23:15:38 +00:00
2019-09-10 23:15:38 +00:00
2019-09-10 23:15:38 +00:00
2020-01-27 07:55:05 -08:00
2020-01-27 07:55:05 -08:00
2020-01-27 07:55:05 -08:00
2020-01-27 07:55:05 -08:00
2019-10-30 17:59:08 -07:00
2020-01-27 07:55:05 -08:00
2020-01-27 07:55:05 -08:00
2020-01-27 07:55:05 -08:00
2020-01-27 07:55:05 -08:00
2020-01-27 07:55:05 -08:00
2020-01-27 07:55:05 -08:00
2020-03-09 14:05:15 +03:00
2019-09-10 23:15:38 +00:00
2019-12-02 13:04:43 -08:00
2019-09-10 23:15:38 +00:00
2019-09-10 23:15:38 +00:00
2019-09-10 23:15:38 +00:00
2019-09-10 23:15:38 +00:00
2019-04-17 17:38:09 +00:00
2019-11-08 17:02:01 -08:00
2019-09-10 23:15:38 +00:00
2020-01-15 19:29:01 +03:00
2019-09-10 23:15:38 +00:00
2019-09-10 23:15:38 +00:00
2019-09-10 23:15:38 +00:00
2019-09-10 23:15:38 +00:00
2020-03-16 07:42:04 -07:00
2019-09-10 23:15:38 +00:00
2019-09-10 23:15:38 +00:00
2019-11-18 15:02:13 -08:00
2019-09-10 23:15:38 +00:00
2019-11-19 12:46:09 +03:00
2019-09-10 23:15:38 +00:00
2019-09-10 23:15:38 +00:00
2019-09-10 23:15:38 +00:00
2019-09-10 23:15:38 +00:00
2019-09-10 23:15:38 +00:00
2019-11-07 15:13:35 +03:00
2019-11-01 13:57:01 -07:00
2019-09-10 23:15:38 +00:00
2020-01-30 10:12:48 -08:00
2020-01-15 19:29:01 +03:00
2019-12-04 14:59:27 -08:00
2019-09-10 23:15:38 +00:00
2019-09-10 23:15:38 +00:00
2019-09-10 23:15:38 +00:00
2019-09-10 23:15:38 +00:00
2019-09-10 23:15:38 +00:00
2019-09-10 23:15:38 +00:00
2019-09-10 23:15:38 +00:00
2019-09-10 23:15:38 +00:00
2019-09-10 23:15:38 +00:00
2019-09-10 23:15:38 +00:00
2019-09-10 23:15:38 +00:00
2019-12-26 18:23:08 -05:00
2019-09-10 23:15:38 +00:00
2019-09-10 23:15:38 +00:00
2019-09-10 23:15:38 +00:00
2019-06-17 09:51:07 +00:00
2019-09-10 23:15:38 +00:00
2020-01-15 19:29:01 +03:00
2019-09-10 23:15:38 +00:00
2019-11-07 15:13:35 +03:00
2019-09-10 23:15:38 +00:00
2019-09-10 23:15:38 +00:00
2019-09-10 23:15:38 +00:00
2020-03-01 19:35:58 +02:00
2019-09-10 23:15:38 +00:00
2020-03-02 14:02:13 -08:00
2019-09-10 23:15:38 +00:00
2019-10-22 09:24:12 +00:00
2019-09-10 23:15:38 +00:00
2019-09-10 23:15:38 +00:00
2019-09-10 23:15:38 +00:00
2019-04-17 17:38:09 +00:00
2019-08-28 01:55:06 +00:00
2019-09-10 23:15:38 +00:00
2020-01-30 10:12:48 -08:00
2019-09-10 23:15:38 +00:00
2019-04-17 17:38:09 +00:00
2020-01-17 10:08:42 -08:00
2020-01-14 10:54:03 -08:00
2019-09-10 23:15:38 +00:00
2019-09-10 23:15:38 +00:00
2019-10-22 09:24:12 +00:00
2019-04-17 17:38:09 +00:00
2019-09-10 23:15:38 +00:00
2019-12-04 14:59:27 -08:00
2019-12-04 14:59:27 -08:00
2019-12-05 16:33:54 -08:00