[all-commits] [llvm/llvm-project] 51ed38: [lld-macho] Make relative method lists work on x86...

Daniel Bertalan via All-commits all-commits at lists.llvm.org
Wed Aug 14 11:42:29 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 51ed383d3803051922ab5f7ff19a38454a415ddb
      https://github.com/llvm/llvm-project/commit/51ed383d3803051922ab5f7ff19a38454a415ddb
  Author: Daniel Bertalan <dani at danielbertalan.dev>
  Date:   2024-08-14 (Wed, 14 Aug 2024)

  Changed paths:
    M lld/MachO/ObjC.cpp
    M lld/MachO/Relocations.cpp
    M lld/MachO/Relocations.h
    M lld/MachO/SyntheticSections.cpp
    A lld/test/MachO/objc-relative-method-lists-simple-x86.s

  Log Message:
  -----------
  [lld-macho] Make relative method lists work on x86-64 (#103905)

Local data is referenced in Objective-C metadata via section + offset
relocations on x86-64 rather than via symbols. Without this change, we
would crash on incorrect casts of the referents to `Defined`.

A basic test based on the existing `objc-relative-method-lists-simple.s`
adopted to x86-64 is added.



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