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