[all-commits] [llvm/llvm-project] 03be61: [ELF] Move ElfSym into Ctx. NFC
Fangrui Song via All-commits
all-commits at lists.llvm.org
Sat Aug 3 11:20:56 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 03be619d9434de0a9616660a2119675635239a5b
https://github.com/llvm/llvm-project/commit/03be619d9434de0a9616660a2119675635239a5b
Author: Fangrui Song <i at maskray.me>
Date: 2024-08-03 (Sat, 03 Aug 2024)
Changed paths:
M lld/ELF/Arch/Mips.cpp
M lld/ELF/Arch/RISCV.cpp
M lld/ELF/Config.h
M lld/ELF/Driver.cpp
M lld/ELF/InputSection.cpp
M lld/ELF/Symbols.cpp
M lld/ELF/Symbols.h
M lld/ELF/SyntheticSections.cpp
M lld/ELF/Writer.cpp
Log Message:
-----------
[ELF] Move ElfSym into Ctx. NFC
Ctx was introduced in March 2022 as a more suitable place for such
singletons. ctx's hidden visibility optimizes generated instructions.
This change fixes a pitfall: certain ElfSym members (e.g.
globalOffsetTable, tlsModuleBase) were not zeroed and might be stale
when lld::elf::link was invoked the second time.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list