[all-commits] [llvm/llvm-project] 06d5e8: [NFCI][ELF][Mips] Replace MipsMultiGotPage with ne...

Jessica Clarke via All-commits all-commits at lists.llvm.org
Wed Jul 30 09:07:44 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 06d5e87e659a19e7acfa6d7ff6545fb2361ff012
      https://github.com/llvm/llvm-project/commit/06d5e87e659a19e7acfa6d7ff6545fb2361ff012
  Author: Jessica Clarke <jrtc27 at jrtc27.com>
  Date:   2025-07-30 (Wed, 30 Jul 2025)

  Changed paths:
    M lld/ELF/Arch/Mips.cpp
    M lld/ELF/InputSection.cpp
    M lld/ELF/Relocations.h
    M lld/ELF/SyntheticSections.cpp
    M lld/ELF/SyntheticSections.h
    M lld/ELF/Target.h

  Log Message:
  -----------
  [NFCI][ELF][Mips] Replace MipsMultiGotPage with new RE_MIPS_OSEC_LOCAL_PAGE

Instead of having a special DynamicReloc::Kind, we can just use a new
RelExpr for the calculation needed. The only odd thing we do that allows
this is to keep a representative symbol for the OutputSection in
question (the first we see for it) around to use in this relocation for
the addend calculation.

This reduces DynamicReloc to just AddendOnly vs AgainstSymbol, plus the
internal Computed.

Reviewers: MaskRay, arichardson

Reviewed By: MaskRay, arichardson

Pull Request: https://github.com/llvm/llvm-project/pull/150810



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