[PATCH] D41987: [ELF] - Define linkerscript symbols early.

George Rimar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 12 05:02:49 PST 2018


grimar created this revision.
grimar added reviewers: espindola, ruiu.
Herald added a subscriber: emaste.

Currently symbols assigned or created by linkerscript are not processed early
enough. As a result it is not possible to version them or assign any other flags/properties.

Patch creates Defined symbols for -defsym and linkerscript symbols early,
so that issue from above can be addressed.

It is Rafael Espindola's version of https://reviews.llvm.org/D38239 patch.

Patch requires change of ThinLTO code, I'll post it as a dependency soon.


https://reviews.llvm.org/D41987

Files:
  ELF/Driver.cpp
  ELF/LTO.cpp
  ELF/LinkerScript.cpp
  ELF/LinkerScript.h
  test/ELF/linkerscript/symbols-synthetic.s
  test/ELF/lto/defsym.ll
  test/ELF/lto/linker-script-symbols-assign.ll
  test/ELF/lto/linker-script-symbols-ipo.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D41987.129602.patch
Type: text/x-patch
Size: 8155 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180112/6a2d5002/attachment-0001.bin>


More information about the llvm-commits mailing list