[PATCH] D25822: [DWARF parsers] - Add a way to get section indices when call DWARFUnit::collectAddressRanges()
David Blaikie via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 21 10:55:08 PDT 2016
(this happens with comdat (inline) functions too - and doesn't happen on
MachO because of reasons/symbols-as-sections, etc)
On Fri, Oct 21, 2016 at 10:51 AM Eugene Leviant <evgeny.leviant at gmail.com>
wrote:
> 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
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161021/23090359/attachment.html>
More information about the llvm-commits
mailing list