[PATCH] D56076: [llvm-objdump] - Do not include reserved undefined symbol in -t output.

George Rimar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 25 03:11:40 PST 2018


grimar created this revision.
grimar added reviewers: jhenderson, davide, dblaikie.
Herald added a subscriber: arichardson.
Herald added a reviewer: espindola.

This is https://bugs.llvm.org/show_bug.cgi?id=26892,

GNU objdump hides the special symbol entry:

  SYMBOL TABLE:
  000000000000a7e0 l     F .text	00000000000003f9 bi_copymodules

while llvm-objdump does not:

  SYMBOL TABLE:
  0000000000000000         *UND*		 00000000 
  000000000000a7e0 l     F .text		 000003f9 bi_copymodules

Patch makes the behavior of the llvm-objdump to be consistent with the GNU objdump.


https://reviews.llvm.org/D56076

Files:
  test/ELF/edata-etext.s
  test/ELF/linkerscript/align4.test
  test/ELF/linkerscript/sizeof.s
  test/ELF/linkerscript/sizeofheaders.s
  test/ELF/linkerscript/symbol-assignexpr.s
  test/ELF/linkerscript/symbol-memoryexpr.s
  test/ELF/wrap-no-real.s
  test/tools/llvm-objdump/X86/demangle.s
  test/tools/llvm-objdump/X86/out-of-section-sym.test
  test/tools/llvm-objdump/symbol-table-elf.test
  tools/llvm-objdump/llvm-objdump.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D56076.179491.patch
Type: text/x-patch
Size: 6119 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181225/d3341b64/attachment.bin>


More information about the llvm-commits mailing list