[PATCH] D25822: [DWARF parsers] - Add a way to get section indices when call DWARFUnit::collectAddressRanges()

Eugene Leviant via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 21 10:51:25 PDT 2016


evgeny777 added a comment.

> You can see that .text has a size of 0xb and starts at 0x0. So the address would fall into the .text sectio

Things can be slightly more complex, like here (this is result of compilation with -ffunction-sections):

  [ 2] .text             PROGBITS        0000000000000000 000040 000000 00  AX  0   0  4
  [ 3] .text.f           PROGBITS        0000000000000000 000040 00000b 00  AX  0   0 16
  [ 4] .text.g           PROGBITS        0000000000000000 000050 00000b 00  AX  0   0 16
  [ 5] .text.h           PROGBITS        0000000000000000 000060 00000b 00  AX  0   0 16


https://reviews.llvm.org/D25822





More information about the llvm-commits mailing list