[all-commits] [llvm/llvm-project] 9b409e: [ELF][Mips] Fix addend for preemptible static TLS
Jessica Clarke via All-commits
all-commits at lists.llvm.org
Fri Jan 16 10:51:04 PST 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 9b409e3651440c847dfa043683c587c9474eb801
https://github.com/llvm/llvm-project/commit/9b409e3651440c847dfa043683c587c9474eb801
Author: Jessica Clarke <jrtc27 at jrtc27.com>
Date: 2026-01-16 (Fri, 16 Jan 2026)
Changed paths:
M lld/ELF/SyntheticSections.cpp
M lld/test/ELF/mips-mgot.s
M lld/test/ELF/mips-tls-64.s
M lld/test/ELF/mips-tls.s
Log Message:
-----------
[ELF][Mips] Fix addend for preemptible static TLS
If the symbol is preemptible the addend should be 0, not our
definition's VA. Note that by using addAddendOnlyRelocIfNonPreemptible
the generic Elf_Rel code will ensure the VA is written out as the addend
if the symbol is non-preemptible, and so writeTo only needs to write out
the VA in the case that we don't call it (so long as we make sure to
call relocateAlloc to actually apply any such relocations).
Reviewers: MaskRay
Pull Request: https://github.com/llvm/llvm-project/pull/150729
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