[WebAssembly] Set __tls_align to 1 when there is no TLS
authorGuanzhong Chen <gzchen@google.com>
Wed, 24 Jul 2019 21:48:14 +0000 (21:48 +0000)
committerGuanzhong Chen <gzchen@google.com>
Wed, 24 Jul 2019 21:48:14 +0000 (21:48 +0000)
commit87186b2447c8b42927fb3a25a42e97fe3bc51716
tree459c51410185c4a5d98a276bc85bc1785686d69c
parent5202b55ca6d8373a68c769cc366fa14f4496ebfb
[WebAssembly] Set __tls_align to 1 when there is no TLS

Summary:
We want the tool conventions to state that `__tls_align` will be a power of 2.
It makes sense to not have an exception for when there is no TLS.

Reviewers: tlively, sunfish

Reviewed By: tlively

Subscribers: dschuff, sbc100, jgravelle-google, aheejin, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D65177

llvm-svn: 366948
lld/test/wasm/no-tls.test [new file with mode: 0644]
lld/wasm/Driver.cpp