[PATCH] D53906: [ELF] Allow configuring the TLS layout for an Android executable
Rui Ueyama via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 1 17:09:41 PDT 2018
ruiu added a comment.
Yes I think you are right. We cannot simply increase the TCB size to 6 words. It is a ABI-breaking change.
What I'm currently seeking is a simple way to create executables/DSOs that are compatible on non-Android and Android, without introducing any new command line flag or a target-dependent logic. I believe it is OK to waste a few words on non-Android if we can achieve that goal. Another idea that is in line with that is to always set a >8 word alignment (you suggested 16, but I don't know why it has to be 16) to a TLS segment if ARM or AArch64. Maybe that could produce a binary that is compatible both Android and non-Android?
Repository:
rLLD LLVM Linker
https://reviews.llvm.org/D53906
More information about the llvm-commits
mailing list