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 _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils