[all-commits] [llvm/llvm-project] ad8df2: [reland][lld-macho] Fix symbol relocs handling for...
Jez Ng via All-commits
all-commits at lists.llvm.org
Fri Nov 12 12:02:28 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: ad8df21db287b9f186421aa340e8e0c061f6222c
https://github.com/llvm/llvm-project/commit/ad8df21db287b9f186421aa340e8e0c061f6222c
Author: Jez Ng <jezng at fb.com>
Date: 2021-11-12 (Fri, 12 Nov 2021)
Changed paths:
M lld/MachO/InputFiles.cpp
M lld/test/MachO/weak-definition-gc.s
Log Message:
-----------
[reland][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