[lld] [LLD] Tombstone LocalTU entry in .debug_names (PR #70701)
Alexander Yermolovich via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 2 16:49:10 PDT 2023
================
@@ -947,12 +953,14 @@ void InputSection::relocateNonAlloc(uint8_t *buf, ArrayRef<RelTy> rels) {
//
// TODO To reduce disruption, we use 0 instead of -1 as the tombstone
// value. Enable -1 in a future release.
+
+ // Extend to 64bit MAX for 64 bit relocations, LocalTU, in .debug_names.
+ if (isDebugNames && type == target.symbolicRel)
+ tombstone = SignExtend64<32>(*tombstone);
----------------
ayermolo wrote:
ok, made it more generic.
https://github.com/llvm/llvm-project/pull/70701
More information about the llvm-commits
mailing list