[Bug binutils/2768] readelf and segmented addresses in DWARF2/3 aranges

2006-06-15 Thread stephane dot chauveau at philips dot com
--- Additional Comments From stephane dot chauveau at philips dot com 2006-06-15 07:46 --- Created an attachment (id=1091) -- (http://sourceware.org/bugzilla/attachment.cgi?id=1091action=view) reference elf file (not segmented) in that version, the arange section is not explictly

[Bug binutils/2768] readelf and segmented addresses in DWARF2/3 aranges

2006-06-15 Thread stephane dot chauveau at philips dot com
--- Additional Comments From stephane dot chauveau at philips dot com 2006-06-15 07:53 --- Created an attachment (id=1092) -- (http://sourceware.org/bugzilla/attachment.cgi?id=1092action=view) elf file with address_size=3 bytes and segmen_sizet=1byte In that version, I indicate

[Bug binutils/2768] readelf and segmented addresses in DWARF2/3 aranges

2006-06-15 Thread stephane dot chauveau at philips dot com
--- Additional Comments From stephane dot chauveau at philips dot com 2006-06-15 08:24 --- (From update of attachment 1093) The ELF file is incorrect (the end marker in a .debug_arange section is 2*4bytes instead of 2*8bytes) -- What|Removed |Added

[Bug binutils/2768] readelf and segmented addresses in DWARF2/3 aranges

2006-06-15 Thread stephane dot chauveau at philips dot com
--- Additional Comments From stephane dot chauveau at philips dot com 2006-06-15 08:33 --- Created an attachment (id=1094) -- (http://sourceware.org/bugzilla/attachment.cgi?id=1094action=view) Proper version of a_4_4.elf A proper version of the previous sample a_4_4.elf. Readelf does

[Bug binutils/2768] readelf and segmented addresses in DWARF2/3 aranges

2006-06-15 Thread stephane dot chauveau at philips dot com
--- Additional Comments From stephane dot chauveau at philips dot com 2006-06-15 09:21 --- A few more remarks: (1) Because of the alignment constraints, it is probably safe to assume that the total size of each address (including the segment) will be a power of two. Readelf should be

[Bug gprof/2776] New: Strange profiling results

2006-06-15 Thread dmantipov at yandex dot ru
I've observed a strange results while profiling the following program: $ cat test.c #include sys/time.h #define rdtscll(val) asm volatile(rdtsc : =A (val)) struct timeval tv; unsigned long long t; void f (int n) { int x, y, z = 0; for (x = 0; x n; x++) for (y = 0; y n; y++) {