This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Dwarf location list base address entry
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Sterling Augustine <saugustine at google dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Fri, 20 Apr 2012 07:37:23 +0200
- Subject: Re: Dwarf location list base address entry
- References: <CAEG7qUyQyFf8QgKZ5OYQ-KiMtLr132mi1DuV=vZBZqBXvzBQiQ@mail.gmail.com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Thu, Apr 19, 2012 at 04:37:22PM -0700, Sterling Augustine wrote:
> Hi,
>
> Under what circumstances does gcc emit a base address selection entry
> for a dwarf location list?
>
> I've looked at the code, and think the answer is "never", but perhaps
> I'm missing something, and I want to be sure.
I think never is the right answer. If !have_multiple_function_sections
DW_AT_low_pc of the CUs is non-zero and .debug_loc addresses are based
on that, if have_multiple_function_sections, then DW_AT_low_pc is 0,
the CU has DW_AT_ranges and .debug_loc list are absolute.
Jakub