OSDN Git Service

libm/x86: use call instead of jump for wrappers
authorTimo Teräs <timo.teras@iki.fi>
Fri, 22 Oct 2010 11:58:13 +0000 (13:58 +0200)
committerDenys Vlasenko <dvlasenk@redhat.com>
Fri, 22 Oct 2010 11:58:13 +0000 (13:58 +0200)
commitf53db356f53686cb0e4ddb25946b8cff9e82453d
treee9e9038e90ad491b3631c8aee4637b4306e3df7f
parent5e8d3975e2cb45df16038e2a99c74abfb252d44a
libm/x86: use call instead of jump for wrappers

GCC can emit prologue/epilogue code for the functions in various
different cases:
 - frame pointers
 - PIC build (to load ebx for indirect calls/jumps)
 - forced stack smashing protection

If we used jump in such cases, we'd corrupt the call stack and
crash.

Signed-off-by: Timo Teräs <timo.teras@iki.fi>
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
libm/ldouble_wrappers.c