[PATCH] D33621: Fix for -wrap linker option and LTO, PR 33145

Dmitry Mikulin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri May 26 21:32:59 PDT 2017


dmikulin created this revision.
Herald added subscribers: inglorion, emaste.

An attempt to fix PR33145, --wrap doesn't work with lto.
Wrapped symbols need to excluded from inter-procedural  optimizations to prevent dropping symbols  and allow the linker to process re-directs.
Current limitation: doesn't work with ThinLTO.


https://reviews.llvm.org/D33621

Files:
  lld/ELF/Driver.cpp
  lld/ELF/InputFiles.cpp
  lld/ELF/LTO.cpp
  lld/ELF/LTO.h
  lld/ELF/LinkerScript.cpp
  lld/ELF/SymbolTable.cpp
  lld/ELF/SymbolTable.h
  lld/ELF/Symbols.cpp
  lld/ELF/Symbols.h
  lld/ELF/SyntheticSections.cpp
  lld/ELF/Writer.cpp
  llvm/include/llvm/LTO/LTO.h
  llvm/lib/LTO/LTO.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D33621.100521.patch
Type: text/x-patch
Size: 18421 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170527/996bd084/attachment.bin>


More information about the llvm-commits mailing list