[PATCH] D15300: Fix wrong external references to __emutls_v.*

Chih-Hung Hsieh via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 7 12:30:47 PST 2015


chh created this revision.
chh added reviewers: rnk, beanz, resistor.
chh added subscribers: srhines, davidxl, danalbert, enh, dimitry, llvm-commits.
Herald added subscribers: tberghammer, aemerson.

Previous implementation in http://reviews.llvm.org/D10522
created external references to __emutls_v.* variables.
Such references are inaccurate and cannot be handled by
all linkers, e.g. Android dynamic and gold linkers for aarch64.

This patch changes __emutls_v.xyz to have the same linkage
as the controlled TLS variable xyz.


http://reviews.llvm.org/D15300

Files:
  lib/CodeGen/AsmPrinter/AsmPrinter.cpp
  lib/CodeGen/SelectionDAG/TargetLowering.cpp
  test/CodeGen/AArch64/emutls.ll
  test/CodeGen/AArch64/emutls_generic.ll
  test/CodeGen/ARM/emutls.ll
  test/CodeGen/ARM/emutls_generic.ll
  test/CodeGen/X86/emutls-pic.ll
  test/CodeGen/X86/emutls_generic.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D15300.42093.patch
Type: text/x-patch
Size: 15537 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151207/d8594541/attachment.bin>


More information about the llvm-commits mailing list