1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00
llvm-mirror/test/tools/llvm-size
georgerim f4f8838607 [yaml2obj, obj2yaml] - Add support for SHT_NOTE sections.
SHT_NOTE is the section that consists of
namesz, descsz, type, name + padding, desc + padding data.
This patch teaches yaml2obj, obj2yaml to dump and parse them.

This patch implements the section how it is described here:
https://docs.oracle.com/cd/E23824_01/html/819-0690/chapter6-18048.html
Which says: "For 64–bit objects and 32–bit objects, each entry is an array of 4-byte words in
the format of the target processor"

The official specification is different
http://www.sco.com/developers/gabi/latest/ch5.pheader.html#note_section
And says: "n 64-bit objects (files with e_ident[EI_CLASS] equal to ELFCLASS64), each entry is an array
of 8-byte words in the format of the target processor. In 32-bit objects (files with e_ident[EI_CLASS]
equal to ELFCLASS32), each entry is an array of 4-byte words in the format of the target processor"

Since LLVM uses the first, 32-bit way, this patch follows it.

Differential revision: https://reviews.llvm.org/D68983
2019-10-25 13:25:56 +03:00
..
archive.test [llvm-size][test] Improve llvm-size testing 2019-08-14 10:17:34 +00:00
common.test [llvm-size][test] Improve llvm-size testing 2019-08-14 10:17:34 +00:00
darwin-m.test [llvm-size][test] Improve llvm-size testing 2019-08-14 10:17:34 +00:00
elf-berkeley.test [llvm-size][test] Improve llvm-size testing 2019-08-14 10:17:34 +00:00
elf-m.test [llvm-size][test] Improve llvm-size testing 2019-08-14 10:17:34 +00:00
elf-sysv.test [yaml2obj, obj2yaml] - Add support for SHT_NOTE sections. 2019-10-25 13:25:56 +03:00
help.test [llvm-size][test] Improve llvm-size testing 2019-08-14 10:17:34 +00:00
invalid-input.test Reapply: [llvm-size] Tidy up error messages (PR42970) 2019-10-14 17:29:15 +00:00
long-format.test [llvm-size][test] Improve llvm-size testing 2019-08-14 10:17:34 +00:00
macho-berkeley.test [llvm-size][test] Improve llvm-size testing 2019-08-14 10:17:34 +00:00
macho-sysv.test [llvm-size][test] Improve llvm-size testing 2019-08-14 10:17:34 +00:00
multiple-inputs.test [llvm-size][test] Improve llvm-size testing 2019-08-14 10:17:34 +00:00
no-input.test Reapply: [llvm-size] Tidy up error messages (PR42970) 2019-10-14 17:29:15 +00:00
radix.test [llvm-size][test] Improve llvm-size testing 2019-08-14 10:17:34 +00:00
response-file.test [llvm-size][test] Improve llvm-size testing 2019-08-14 10:17:34 +00:00
stdin.test [llvm-size][test] Improve llvm-size testing 2019-08-14 10:17:34 +00:00
totals.test [llvm-size][test] Improve llvm-size testing 2019-08-14 10:17:34 +00:00
unknown-format.test [llvm-size][test] Improve llvm-size testing 2019-08-14 10:17:34 +00:00
version.test [llvm-size][test] Improve llvm-size testing 2019-08-14 10:17:34 +00:00