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

Ryan Prichard via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 8 15:35:54 PST 2019


rprichard updated this revision to Diff 180755.
rprichard added a comment.

Add an explanation of how overaligning the executable TLS segment reserves the extra space Android needs for its TCB slots.

I think this helps clarify why the Config->Shared case doesn't do the overalignment? lld could overalign solibs, but it wouldn't be necessary, and it would create more alignment padding, wasting TLS memory.


Repository:
  rLLD LLVM Linker

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

https://reviews.llvm.org/D53906

Files:
  ELF/InputSection.cpp
  ELF/Writer.cpp
  test/ELF/aarch64-cortex-a53-843419-tlsrelax.s
  test/ELF/aarch64-tls-gdle.s
  test/ELF/aarch64-tls-iele.s
  test/ELF/aarch64-tls-le.s
  test/ELF/aarch64-tlsld-ldst.s
  test/ELF/arm-tls-le32.s
  test/ELF/arm-tls-norelax-ie-le.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D53906.180755.patch
Type: text/x-patch
Size: 10992 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190108/b326e5d5/attachment.bin>


More information about the llvm-commits mailing list