MaskRay added a comment.

> Recently, lld has started debug info resolving relocations to 
> garbage-collected symbols as -1

Just mention D81784 <https://reviews.llvm.org/D81784>:)

> (instead of 0).

This is not accurate. It resolves the relocation to `r_addend`. In many cases, 
r_addend is 0. However, for the following, a non-zero addend is possible.

  __attribute__((section(".text.x"))) void f1() { }
  __attribute__((section(".text.x"))) void f2() { } // DW_AT_low_pc has a 
non-zero addend


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D83957/new/

https://reviews.llvm.org/D83957



_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to