[PATCH] D61647: llvm-objdump: when ELF st_other field is set, print its value before symbol name

Brandon Bergren via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 7 16:32:22 PDT 2019


Bdragon28 added a comment.

The relevant binutils objdump logic is contained in bfd/elf.c, specifically the bfd_elf_print_symbol() function.

The bfd_print_symbol_all case does:

- symbol VMA
- space
- symbol flags
- space
- Section name or "(*none*)"
- Tab character
- st_value (if symbol is in a common section) or st_size
- if symbol is versioned: space and then symbol version information, surrounded with () if hidden. Trailing spaces as required to end up at 12 characters total for this part.
- space and then st_other IF NONZERO. Use ".hidden", ".internal", or ".protected" if st_other is exactly one of those values, otherwise st_other in hex.
- space
- symbol name.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D61647/new/

https://reviews.llvm.org/D61647





More information about the llvm-commits mailing list