[lld] [ELF] Change .debug_names tombstone value to UINT32_MAX/UINT64_MAX (PR #74686)

Bevin Hansson via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 23 23:52:28 PST 2024


bevin-hansson wrote:

The case where it happens (at least for us) is something like
```
__attribute__((weak) int symbol;

int main() {
  return (int)&symbol;
}

$ clang foo.c -fuse-ld=lld -Xlinker --defsym=symbol=1
```
In this case, the value of the symbol becomes 1, but the relocation for the value of the symbol in the .debug_info section gets a 0.

https://github.com/llvm/llvm-project/pull/74686


More information about the llvm-commits mailing list