[llvm-readobj] Don't print out section names for STABS symbols
authorJez Ng <jezng@fb.com>
Tue, 29 Sep 2020 06:10:34 +0000 (23:10 -0700)
committerJez Ng <jezng@fb.com>
Tue, 13 Oct 2020 01:55:40 +0000 (18:55 -0700)
commit84cc39c329f8d4910b8f558971d715f949ce1e94
treedc3b7125af850a0ce06be727738f222233095f59
parent950ae43091121ea357f735790f4042264cf40728
[llvm-readobj] Don't print out section names for STABS symbols

This diff is similar to what D71394 did for `llvm-objdump` -- it avoids
trying to look up a section name for STABS symbols, since some STABS
symbol types (like `N_OSO`) use the `n_sect` field to store other data
instead of a section index.

Differential Revision: https://reviews.llvm.org/D88468
llvm/test/tools/llvm-objcopy/MachO/symbol-table.test
llvm/test/tools/llvm-readobj/MachO/stabs.yaml [new file with mode: 0644]
llvm/tools/llvm-readobj/MachODumper.cpp