This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug dynamic-link/18402] FPU use in application before main()


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]