aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineFunction.cpp
diff options
context:
space:
mode:
authorLuqman Aden <me@luqman.ca>2020-10-15 00:06:46 -0700
committerLuqman Aden <me@luqman.ca>2020-10-15 00:22:40 -0700
commit6a73d6564a3c7d0757692aa93bdef5be0c8f01a5 (patch)
treee2025c28b04004d9b35803d95ec55cb77a5b6183 /llvm/lib/CodeGen/MachineFunction.cpp
parentf87c98def86be7b737799e9980af2a0b77e9bc28 (diff)
downloadllvm-6a73d6564a3c7d0757692aa93bdef5be0c8f01a5.zip
llvm-6a73d6564a3c7d0757692aa93bdef5be0c8f01a5.tar.gz
llvm-6a73d6564a3c7d0757692aa93bdef5be0c8f01a5.tar.bz2
[LLD] Set alignment as part of Characteristics in TLS table.
Fixes https://bugs.llvm.org/show_bug.cgi?id=46473 LLD wasn't previously specifying any specific alignment in the TLS table's Characteristics field so the loader would just assume the default value (16 bytes). This works most of the time except if you have thread locals that want specific higher alignments (e.g. 32 as in the bug) *even* if they specify an alignment on the thread local. This change updates LLD to take the max alignment from tls section. Reviewed By: rnk Differential Revision: https://reviews.llvm.org/D88637
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
0 files changed, 0 insertions, 0 deletions