This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug dynamic-link/18402] FPU use in application before main()
- From: "dave at sr71 dot net" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Tue, 12 May 2015 14:48:41 +0000
- Subject: [Bug dynamic-link/18402] FPU use in application before main()
- Auto-submitted: auto-generated
- References: <bug-18402-131 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=18402
Dave Hansen <dave at sr71 dot net> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|FPU use in strlen() before |FPU use in application
|main() |before main()
--- Comment #2 from Dave Hansen <dave at sr71 dot net> ---
You're right. For the dynamically linked app, it looks like the FPU use was in
strchr. Let me go back and double-check the statically linked version.
The kernel told me the address from a tracepoint in the fpu code:
hellodave-1707 [003] d..1 36047.630641: fpu_not_available:
ip=0x7ffff7a9f7c0 error_code=0x0 fpu_counter: 0
(gdb) disassemble 0x7ffff7a9f7c0
Dump of assembler code for function strrchr:
0x00007ffff7a9f7c0 <+0>: movd %esi,%xmm1
For the record, my test app is this:
int main() {
int i;
char msg[] = "hello dave\n";
write(1, msg, sizeof(msg));
sleep(9999);
return 0;
}
--
You are receiving this mail because:
You are on the CC list for the bug.