bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: DW_AT_high_pc and DW_AT_low_pc zero in DWARF-2 debug info in obje ct


From: Daniel Jacobowitz
Subject: Re: DW_AT_high_pc and DW_AT_low_pc zero in DWARF-2 debug info in obje ct file in 64bit world
Date: Fri, 4 Nov 2005 16:30:22 -0500
User-agent: Mutt/1.5.8i

On Fri, Nov 04, 2005 at 04:04:05PM +0100, Mlynarik Jan wrote:
> Hello,
> 
> We are using a cross compiler for 64 bit Linux on MIPS yosemite. When we
> compile c sources with command: 
> 
> mips64-linux-gnu-gcc -c -gdwarf-2 -mabi=64 example2.c 
> 
> then the values of DW_AT_high_pc and DW_AT_low_pc atributes in dwarf2 info
> are 0, what is surely wrong.
> 
> If we use "mips64-linux-gnu-gcc -c -gdwarf-2 -mabi=32" then there are
> reasonable values in these attributes.
> 
> This is not a problem of the dwarfdump, because this values can be found
> also by hand in the object files.

I don't know why it works for 32-bit and not for 64-bit.  Readelf
output would be more useful for that question.  However, in general you
can not use dwarfdump or readelf to look at unrelocated object files,
only linked ones.  If you use readelf -r, you will see relocations
associated with the dwarf sections, at the offsets of the "bad"
DW_AT_high_pc fields.

This is not a bug.


-- 
Daniel Jacobowitz
CodeSourcery, LLC




reply via email to

[Prev in Thread] Current Thread [Next in Thread]