[PATCH] D21550: [lld] support --trace-symbol (alias -y) option

Shridhar Joshi via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 21 02:29:43 PDT 2016


joshishr created this revision.
joshishr added a reviewer: llvm-commits.

I have implemented "--trace-symbol=symbol" (alias -y symbol) option. 

This option provides names of all the link time modules which define and reference symbols requested by user. This helps to speed up application development by detecting references causing undefined symbols. It also helps in detecting symbols being resolved to wrong (unintended) definitions in case of applications containing multiple definitions for same symbols with different types, bindings.

Implementation contains symbols from object files, shared and archive libraries and executable.

Bugzilla - Bug - PR#28226

subversion revision in lld trunk on which this patch is created: #273248

Patch by Shridhar Joshi


http://reviews.llvm.org/D21550

Files:
  ELF/Config.h
  ELF/Driver.cpp
  ELF/Error.cpp
  ELF/Error.h
  ELF/InputFiles.cpp
  ELF/InputFiles.h
  ELF/Options.td
  ELF/SymbolTable.cpp
  test/ELF/Inputs/trace-symbols-foo-global.s
  test/ELF/Inputs/trace-symbols-foo-weak.s
  test/ELF/Inputs/trace-symbols-main.s
  test/ELF/trace-symbols.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D21550.61347.patch
Type: text/x-patch
Size: 9382 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160621/c571456c/attachment.bin>


More information about the llvm-commits mailing list