[Lldb-commits] [PATCH] D83957: [lldb/DWARF] Don't get confused by line sequences with tombstone values

Fangrui Song via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Thu Jul 16 17:41:21 PDT 2020


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





More information about the lldb-commits mailing list