[PATCH] D53906: [ARM][AArch64] Increase TLS alignment to reserve space for Android's TCB

Szabolcs Nagy via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon May 13 09:27:35 PDT 2019


nsz added a comment.
Herald added a subscriber: MaskRay.
Herald added a project: LLVM.

i think this should be fixed in the tools/runtimes that assume fixed tls offset abi that conflict with the elf tls abi.

e.g. allocating tls in bionic crt0 is a valid solution, changing bionic internals and compilers that make assumptions about bionic internals is another solution (but then handling bw compat becomes difficult).

"Putting a TLS segment in every executable seems like something we'd like to avoid. Another problem is that the compiler and/or linker tries to optimize out the dummy section. e.g. with --gc-sections"

why? it sounds to me that has the right semantics: tls gets reserved by bionic in every executable that bionic uses internally (you can create a tls var and reference it from bionic to avoid gc-sections)


Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D53906/new/

https://reviews.llvm.org/D53906





More information about the llvm-commits mailing list