[all-commits] [llvm/llvm-project] 709124: [ELF] Move TLS dynamic relocations to postScanRelo...
Fangrui Song via All-commits
all-commits at lists.llvm.org
Fri Dec 24 22:37:02 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 70912420bbc39e0cf486a933182d910bfd835063
https://github.com/llvm/llvm-project/commit/70912420bbc39e0cf486a933182d910bfd835063
Author: Fangrui Song <i at maskray.me>
Date: 2021-12-24 (Fri, 24 Dec 2021)
Changed paths:
M lld/ELF/Relocations.cpp
M lld/ELF/Symbols.h
M lld/test/ELF/i386-tls-dynamic.s
M lld/test/ELF/i386-tlsdesc-gd.s
M lld/test/ELF/riscv-tls-ld.s
M lld/test/ELF/x86-64-tlsdesc-gd.s
Log Message:
-----------
[ELF] Move TLS dynamic relocations to postScanRelocations
This temporarily increases sizeof(SymbolUnion), but allows us to mov GOT/PLT/etc
index members outside Symbol in the future.
Then, we can make TLSDESC and TLSGD use different indexes and support mixed
TLSDESC and TLSGD (tested by x86-64-tlsdesc-gd-mixed.s).
Note: needsTlsGd and needsTlsGdToIe may optionally be combined.
Test updates are due to reordered GOT entries.
More information about the All-commits
mailing list