1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 11:42:57 +01:00
llvm-mirror/test/tools
George Rimar e10ef99eec [llvm-readelf] - Print unknown st_other value if present in GNU output.
This is a fix for https://bugs.llvm.org/show_bug.cgi?id=40785.

llvm-readelf does not print the st_value of the symbol when
st_value has any non-visibility bits set.

This patch:

* Aligns "Ndx" row for the default and a new cases.
(it was 1 space character off for the case when "PROTECTED" visibility was printed)

* Prints "[<other>: 0x??]" for symbols which has an additional st_other bits set.
In compare with GNU, this logic is a bit simpler and seems to be more consistent.

For MIPS GNU can print named flags, though can't print a mix of them:
0: 00000000 0 NOTYPE LOCAL DEFAULT UND 
1: 00000000 0 NOTYPE GLOBAL DEFAULT [OPTIONAL] UND a1
2: 00000000 0 NOTYPE GLOBAL DEFAULT [MIPS PLT] UND a2
3: 00000000 0 NOTYPE GLOBAL DEFAULT [MIPS PIC] UND a3
4: 00000000 0 NOTYPE GLOBAL DEFAULT [MICROMIPS] UND a4
5: 00000000 0 NOTYPE GLOBAL DEFAULT [MIPS16] UND a5
6: 00000000 0 NOTYPE GLOBAL DEFAULT [<other>: c] UND b1
7: 00000000 0 NOTYPE GLOBAL DEFAULT [<other>: 28] UND b2

On PPC64 it can print a localentry value that is encoded in the high bits of st_other
63: 0000000000000850 208 FUNC GLOBAL DEFAULT [<localentry>: 8] 12

We chose to print the raw st_other field, prefixed with '0x'.

Differential revision: https://reviews.llvm.org/D67094

llvm-svn: 371201
2019-09-06 13:05:34 +00:00
..
dsymutil [llvm-readobj][MachO] Fix section type printing 2019-08-15 07:22:04 +00:00
gold Fix check in tools/gold/X86/strip_names.ll regarding unnamed args 2019-08-08 12:11:13 +00:00
llvm-ar [llvm-ar] Accept file paths with windows format slashes 2019-08-12 14:00:28 +00:00
llvm-as
llvm-cfi-verify
llvm-config
llvm-cov Ignore object files that lack coverage information. 2019-08-28 20:35:50 +00:00
llvm-cvtres [COFF] Add a ResourceSectionRef method for getting resource contents 2019-08-30 06:55:49 +00:00
llvm-cxxdump
llvm-cxxfilt
llvm-cxxmap
llvm-diff
llvm-dlltool [test] [llvm-dlltool] Improve test strictness a little. NFC. 2019-09-02 13:28:21 +00:00
llvm-dwarfdump [test] Update the name of the debug entry values option. NFC 2019-09-06 12:23:37 +00:00
llvm-dwp
llvm-elfabi
llvm-exegesis
llvm-extract
llvm-ifs [NFC][llvm-ifs] Adding .ifs files to the test list for llvm-ifs tool. 2019-09-04 00:07:49 +00:00
llvm-isel-fuzzer
llvm-lib
llvm-lipo [llvm-lipo] Implement -segalign 2019-08-05 19:06:55 +00:00
llvm-lit
llvm-lto
llvm-lto2 Revert "Change the X86 datalayout to add three address spaces for 32 bit signed," 2019-08-28 01:08:54 +00:00
llvm-mc
llvm-mca [X86][BtVer2] Fix latency and throughput of conditional SIMD store instructions. 2019-09-02 12:32:28 +00:00
llvm-modextract
llvm-mt
llvm-nm Recommit r370661 "[llvm-nm] - Add a test case for case when we dump a symbol that belongs to a section with a broken sh_name." 2019-09-02 14:57:35 +00:00
llvm-objcopy [yaml2obj] Write the section header table after section contents 2019-09-05 14:25:57 +00:00
llvm-objdump [X86] Print register names in .seh_* directives 2019-08-30 21:23:05 +00:00
llvm-opt-fuzzer
llvm-opt-report
llvm-pdbutil
llvm-profdata [llvm-profdata] Add mode to recover from profile read failures 2019-09-03 22:23:16 +00:00
llvm-rc [llvm-readobj] Print the resource type textually for .res files 2019-08-29 08:59:31 +00:00
llvm-readobj [llvm-readelf] - Print unknown st_other value if present in GNU output. 2019-09-06 13:05:34 +00:00
llvm-size [llvm-size][test] Improve llvm-size testing 2019-08-14 10:17:34 +00:00
llvm-split
llvm-strings [llvm-strings][test] Merge two closely related tests 2019-09-02 11:42:30 +00:00
llvm-symbolizer Add "REQUIRES: x86-registered-target" to test. 2019-08-05 21:44:45 +00:00
llvm-xray/X86
lto
obj2yaml [yaml2obj][obj2yaml] - Use a single "Other" field instead of "Other", "Visibility" and "StOther". 2019-08-30 13:39:22 +00:00
opt-viewer
sancov
sanstats
yaml2obj [yaml2obj] Rename SHOffset (e_shoff) field to SHOff. NFC 2019-09-06 09:23:17 +00:00