[all-commits] [llvm/llvm-project] e941fe: [lld-macho] Fix symbol relocs handling for compact...

Jez Ng via All-commits all-commits at lists.llvm.org
Thu Nov 11 19:53:59 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e941fe506114569410ec8c77e600cddd5a77559d
      https://github.com/llvm/llvm-project/commit/e941fe506114569410ec8c77e600cddd5a77559d
  Author: Jez Ng <jezng at fb.com>
  Date:   2021-11-11 (Thu, 11 Nov 2021)

  Changed paths:
    M lld/MachO/InputFiles.cpp
    M lld/test/MachO/weak-definition-gc.s

  Log Message:
  -----------
  [lld-macho] Fix symbol relocs handling for compact unwind's functionAddress

Clang seems to emit all functionAddress relocs as section relocs, but
`ld -r` can turn those relocs into symbol ones. It turns out that we
weren't handling that case correctly when the symbol was a weak def
whose definition did not prevail.

Reviewed By: #lld-macho, oontvoo

Differential Revision: https://reviews.llvm.org/D113702




More information about the All-commits mailing list