[all-commits] [llvm/llvm-project] 9fa7f4: [lld-macho] Category merger: handle addends when ...

alx32 via All-commits all-commits at lists.llvm.org
Tue Jul 2 14:11:35 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9fa7f401b2651663407562932529f72142bf8aaa
      https://github.com/llvm/llvm-project/commit/9fa7f401b2651663407562932529f72142bf8aaa
  Author: alx32 <103613512+alx32 at users.noreply.github.com>
  Date:   2024-07-02 (Tue, 02 Jul 2024)

  Changed paths:
    M lld/MachO/ObjC.cpp
    A lld/test/MachO/objc-category-merging-swift.s

  Log Message:
  -----------
  [lld-macho]  Category merger: handle addends when getting symbol at offset (#91238)

Currently the `tryFindDefinedOnIsec` takes in an `InputSection` and an
`offset` and is supposed to return the target symbol that is referenced
on that `InputSection` at the given offset.

However, it does not deal with the reloc `addend` and might return the
incorrect symbol.
Here we add support for handling the reloc's `addend`.



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