[llvm-branch-commits] [NFCI][ELF][Mips] Refactor MipsGotSection to avoid explicit writes (PR #150730)
Jessica Clarke via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Fri Jul 25 18:16:45 PDT 2025
================
@@ -1055,74 +1059,122 @@ void MipsGotSection::build() {
ctx.symAux.back().gotIdx = p.second;
}
- // Create dynamic relocations.
+ // Create relocations.
+ //
+ // NB: GOT 'page address' entries have their VAs handled in writeTo as they
+ // reference an OutputSection not a Symbol.
for (FileGot &got : gots) {
- // Create dynamic relocations for TLS entries.
+ static Undefined dummy(ctx.internalFile, "", STB_LOCAL, 0, 0);
----------------
jrtc27 wrote:
NB: There are now three instances of this (one non-static, which I guess is more correct with the ctx-ification of LLD...). Perhaps ctx should grow this as a member that's constructed at the same time as internalFile?
https://github.com/llvm/llvm-project/pull/150730
More information about the llvm-branch-commits
mailing list