[all-commits] [llvm/llvm-project] cb03ac: [ELF] Move Symbol::needsTlsLd to config->needsTlsLd
Fangrui Song via All-commits
all-commits at lists.llvm.org
Mon Feb 7 10:26:29 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: cb03ac0b5d6f5c46d453762b2f6e234c24eabe1e
https://github.com/llvm/llvm-project/commit/cb03ac0b5d6f5c46d453762b2f6e234c24eabe1e
Author: Fangrui Song <i at maskray.me>
Date: 2022-02-07 (Mon, 07 Feb 2022)
Changed paths:
M lld/ELF/Config.h
M lld/ELF/Relocations.cpp
M lld/ELF/Symbols.h
M lld/test/ELF/i386-tls-dynamic.s
M lld/test/ELF/ppc64-tls-missing-gdld.s
Log Message:
-----------
[ELF] Move Symbol::needsTlsLd to config->needsTlsLd
to decrease sizeof(SymbolUnion) from 72 to 64 on ELF64 platforms.
Use a dummy `Undefined` to prevent null pointer dereference (though unused)
`*rel.sym` in InputSectionBase::relocateAlloc.
The relocation order may shuffle a bit, but otherwise there is no behavior
difference.
More information about the All-commits
mailing list