[PATCH] Save fp registers on x64 function resolution.

Alexander Monakov amonakov@ispras.ru
Tue Jul 30 09:53:00 GMT 2013


To reiterate the point that other people have made previously:

GCC 4.8 has gained an ability to spill to SSE registers rather than to stack.
Assuming that some/all distributions will not pass -mno-sse on x86-64, you
already have a problem even without external modules such as malloc hooks or
audit libraries.


I don't understand why there is concern about the additional cost to
save/restore SSE registers.  That code is only executed once per symbol at the
time of resolution, where it is negligible compared to the cost of symbol
lookup.  In case PLT profiling is active, you have the additional cost on each
call, but there it is again negligible compared to the profiling routines.

Alexander



More information about the Libc-alpha mailing list