[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 #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++) { z +=

[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 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=1094&action=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 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:04 --- Created an attachment (id=1093) --> (http://sourceware.org/bugzilla/attachment.cgi?id=1093&action=view) elf file with address_size=4 and segment_size=4 In the two previous samples, I rely on the

[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=1092&action=view) elf file with address_size=3 bytes and segmen_sizet=1byte In that version, I indicate expli

[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=1091&action=view) reference elf file (not segmented) in that version, the arange section is not explictly seg

[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:41 --- I am currently trying to implement DWARF2 support for our architectures so I can only provide samples that show my current interpretation of the specs. More precisely, our architectures are not e