[all-commits] [llvm/llvm-project] 58e6bc: [ELF] Add a dummySym member to Ctx

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


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

  Changed paths:
    M lld/ELF/Config.h
    M lld/ELF/Driver.cpp
    M lld/ELF/Relocations.cpp
    M lld/ELF/Target.cpp

  Log Message:
  -----------
  [ELF] Add a dummySym member to Ctx

This ensures subsequent calls to elf::postScanRelocations with a new Ctx
will correctly use an instance with the right internalFile (with the old
one presumably deleted, even). It also avoids having to create a new
instance in elf::getErrorPlace, and will allow more uses of such a dummy
symbol in future commits.

Reviewers: MaskRay

Reviewed By: MaskRay

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



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