Re: [RFA/DWARF2] Handle nested subprograms in CU pc bound calculation

Daniel Jacobowitz
2008-09-30T15:43:23Z

On Tue, Sep 30, 2008 at 08:27:57AM -0700, Joel Brobecker wrote:
> Here is what happens:
>
> 1. When compiling with -ffunction-sections, the compiler is not
> providing the CU PC bounds (DW_AT_low_pc and DW_AT_high_pc).
> I would imagine that this is because functions might be removed
> later during the link, and thus bounds might be affected.

It should provide DW_AT_ranges instead. Is it not doing that? What
era compiler is this?

The patch is fine, either way.

--
Daniel Jacobowitz
CodeSourcery