[PATCH] [lld] Add TLS support for MachO/x86-64 - updated.

Lang Hames lhames at gmail.com
Fri Jun 19 14:59:36 PDT 2015


Hi ruiu, kledzik,

This is a re-post of http://reviews.llvm.org/D10257 with review comments addressed and llvm-commits CC'd.

---

Add support for TLS relocations to MachO/x86-64.

This initial implementation does not attempt to perform the mov -> lea transform for local TLVs, but this is not required for correctness. I plan to add this optimization in a follow-up patch.

REPOSITORY
  rL LLVM

http://reviews.llvm.org/D10578

Files:
  include/lld/ReaderWriter/MachOLinkingContext.h
  lib/ReaderWriter/MachO/ArchHandler.h
  lib/ReaderWriter/MachO/ArchHandler_x86_64.cpp
  lib/ReaderWriter/MachO/CMakeLists.txt
  lib/ReaderWriter/MachO/MachOLinkingContext.cpp
  lib/ReaderWriter/MachO/MachONormalizedFileFromAtoms.cpp
  lib/ReaderWriter/MachO/MachONormalizedFileToAtoms.cpp
  lib/ReaderWriter/MachO/MachOPasses.h
  lib/ReaderWriter/MachO/TLVPass.cpp
  test/mach-o/parse-tlv-relocs-x86-64.yaml
  test/mach-o/run-tlv-pass-x86-64.yaml

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D10578.28050.patch
Type: text/x-patch
Size: 25067 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150619/b4905234/attachment.bin>


More information about the llvm-commits mailing list