[all-commits] [llvm/llvm-project] ef85f4: [llvm-readobj] Change errors to warnings for symbo...

James Henderson via All-commits all-commits at lists.llvm.org
Mon Nov 4 04:04:53 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: ef85f47595a905475d3e7b8d1441ed69cb226d9c
      https://github.com/llvm/llvm-project/commit/ef85f47595a905475d3e7b8d1441ed69cb226d9c
  Author: James Henderson <jh7370 at my.bristol.ac.uk>
  Date:   2019-11-04 (Mon, 04 Nov 2019)

  Changed paths:
    M llvm/test/Object/invalid.test
    A llvm/test/tools/llvm-readobj/elf-section-symbols.test
    M llvm/test/tools/llvm-readobj/elf-symbol-shndx.test
    M llvm/test/tools/yaml2obj/dynamic-symbols.yaml
    M llvm/test/tools/yaml2obj/elf-sht-symtab-shndx.yaml
    M llvm/tools/llvm-readobj/ELFDumper.cpp

  Log Message:
  -----------
  [llvm-readobj] Change errors to warnings for symbol section name dumping

Also only print each such warning once.

LLVM-style output will now print "<?>" for sections it cannot identify,
e.g. because the section index is invalid. GNU output continues to print
the raw index. In both cases where the st_shndx value is SHN_XINDEX and
the index cannot be looked up in the SHT_SYMTAB_SHNDX section (e.g.
because it is missing), the symbol is printed like other symbols with
st_shndx >= SHN_LORESERVE.

Reviewed by: grimar, MaskRay

Differential Revision: https://reviews.llvm.org/D69671




More information about the All-commits mailing list