This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/11155] fstat broken on sparc64
- From: "hideaki at sogetthis dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 9 Jan 2010 16:11:20 -0000
- Subject: [Bug libc/11155] fstat broken on sparc64
- References: <20100109160855.11155.hideaki@sogetthis.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From hideaki at sogetthis dot com 2010-01-09 16:11 -------
Created an attachment (id=4505)
--> (http://sourceware.org/bugzilla/attachment.cgi?id=4505&action=view)
test case
Compile this with -m64. You should observe:
1260745109.876573675
1260745109.000000000
When compiled with -static, objdump prints (for -m32):
0001d720 <fstat64>:
1d720: 94 10 00 09 mov %o1, %o2
1d724: 92 10 00 08 mov %o0, %o1
1d728: 90 10 20 03 mov 3, %o0
1d72c: 82 13 c0 00 mov %o7, %g1
1d730: 10 80 00 0c b 1d760 <___fxstat64>
While with -m64:
000000000010d9c0 <fstat64>:
10d9c0: 94 10 00 09 mov %o1, %o2
10d9c4: 92 10 00 08 mov %o0, %o1
10d9c8: 90 10 20 03 mov 3, %o0
10d9cc: 82 13 c0 00 mov %o7, %g1
10d9d0: 10 68 00 0c b %xcc, 10da00 <__fxstat>
So __fxstat64 is not called in 64-bit mode. This looks like a glibc bug to me.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=11155
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.