diff options
author | Ryan Prichard <rprichard@google.com> | 2019-07-30 16:30:46 -0700 |
---|---|---|
committer | Ryan Prichard <rprichard@google.com> | 2019-07-30 16:30:46 -0700 |
commit | 6d601458de0b6485743bc23732f200d91b999537 (patch) | |
tree | 20780394ee652a73c1e793a267b115af00cdf554 /tests/stdio_test.cpp | |
parent | c16468b66178fd1e2ea9469298db05f5bf43b20b (diff) |
Renumber arm64 TLS to match GNU values
The AArch64 ELF specification originally specified these relocations:
R_AARCH64_TLS_DTPREL64 1028
R_AARCH64_TLS_DTPMOD64 1029
However, the GNU toolchain implemented them as:
R_AARCH64_TLS_DTPMOD64 1028
R_AARCH64_TLS_DTPREL64 1029
The AArch64 ELF specification has been updated to replace the relocations
with R_AARCH64_TLS_IMPDEF1 and with R_AARCH64_TLS_IMPDEF2, where each
implementation can choose which interpretation it implements, but with a
suggestion to follow the GNU behavior.
Also: remove the 64 suffixes from the TLS relocations. The newest version
of the AArch64 ELF specification (version f) also omits the suffixes, as
do the glibc headers.
Bug: http://b/123385182
Bug: https://bugs.llvm.org/show_bug.cgi?id=40507
Test: build device, it boots
Change-Id: Ie98b7624752982973f0ac969d646454a86784cab
Diffstat (limited to 'tests/stdio_test.cpp')
0 files changed, 0 insertions, 0 deletions