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-15 17:46:23 -07:00
2018-03-01 21:54:08 +00:00
2020-01-17 12:34:50 -06:00
2020-03-15 17:46:23 -07:00
2017-02-10 15:33:13 +00:00
2020-01-21 11:35:10 -06:00
2020-03-16 07:42:04 -07:00
2017-03-16 01:52:10 +00:00
2018-03-30 15:29:47 +00:00
2020-03-15 17:46:23 -07:00
2020-03-05 09:59:53 -08:00
2018-05-17 13:21:18 +00:00
2018-05-17 13:21:18 +00:00
2017-02-06 19:35:46 +00:00
2017-05-02 18:03:08 +00:00
2017-02-06 23:18:57 +00:00
2017-02-06 19:35:46 +00:00
2017-10-18 18:07:07 +00:00
2017-06-22 15:53:31 +00:00
2017-02-10 15:33:13 +00:00
2019-05-01 05:27:20 +00:00
2017-02-06 19:35:46 +00:00
2019-12-24 15:57:33 -08:00
2018-05-07 17:34:23 +00:00
2017-02-10 15:33:13 +00:00
2018-11-09 14:17:27 +00:00
2018-03-01 17:03:26 +00:00
2019-05-03 16:50:38 +00:00
2020-03-15 17:46:23 -07:00
2020-02-14 12:43:43 -06:00
2020-03-15 17:46:23 -07:00
2017-05-02 18:19:11 +00:00
2017-02-10 15:33:13 +00:00
2017-02-10 15:33:13 +00:00
2017-02-10 15:33:13 +00:00
2017-02-10 15:33:13 +00:00
2017-02-10 15:33:13 +00:00
2017-02-10 15:33:13 +00:00
2017-02-10 15:33:13 +00:00
2017-02-10 15:33:13 +00:00
2018-03-23 18:43:09 +00:00
2019-05-03 16:50:38 +00:00
2020-03-15 17:46:23 -07:00
2017-02-10 15:33:13 +00:00
2017-02-10 15:33:13 +00:00
2018-11-11 19:15:27 +00:00
2019-06-17 09:51:07 +00:00
2017-02-06 23:18:57 +00:00
2020-03-05 18:05:28 -08:00
2017-05-01 20:06:01 +00:00
2017-12-11 18:57:54 +00:00
2017-02-06 19:35:46 +00:00
2017-02-06 19:35:46 +00:00
2017-02-06 19:35:46 +00:00
2019-08-08 19:13:23 +00:00
2020-03-05 09:59:53 -08:00
2017-02-06 19:35:46 +00:00
2018-05-14 19:46:08 +00:00
2017-02-06 23:18:57 +00:00
2018-05-14 19:46:08 +00:00
2020-03-15 17:46:23 -07:00
2017-02-06 19:35:46 +00:00
2017-02-10 15:33:13 +00:00
2017-05-01 20:10:41 +00:00
2017-02-10 15:33:13 +00:00
2017-02-06 19:35:46 +00:00
2017-05-01 20:10:41 +00:00
2017-05-01 20:10:41 +00:00
2020-03-15 17:46:23 -07:00
2017-05-02 18:00:37 +00:00
2017-02-06 23:18:57 +00:00
2017-11-22 20:43:00 +00:00
2018-08-13 14:01:25 +00:00
2017-02-10 15:33:13 +00:00
2020-03-15 17:46:23 -07:00
2020-03-15 17:46:23 -07:00
2020-03-15 17:46:23 -07:00
2020-03-15 17:46:23 -07:00
2020-03-15 17:46:23 -07:00
2020-03-15 17:46:23 -07:00
2020-03-15 17:46:23 -07:00
2020-03-15 17:46:23 -07:00
2020-03-15 17:46:23 -07:00
2020-03-15 17:46:23 -07:00
2020-03-15 17:46:23 -07:00
2017-02-10 23:46:45 +00:00
2020-03-15 17:46:23 -07:00
2020-03-15 17:46:23 -07:00
2020-03-15 17:46:23 -07:00
2020-03-15 17:46:23 -07:00
2020-03-15 17:46:23 -07:00
2020-01-21 11:35:10 -06:00
2020-01-21 11:35:10 -06:00
2020-01-21 11:35:10 -06:00
2018-06-19 18:09:54 +00:00
2017-12-11 18:57:54 +00:00
2017-12-11 18:57:54 +00:00
2017-12-11 18:57:54 +00:00
2020-03-15 17:46:23 -07:00