From 8ed66ecbcba1dd0f899f22b534aac92a282f42d5 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Sat, 18 Apr 2015 20:45:39 -0400 Subject: remove the last of possible-textrels from i386 asm none of these are actual textrels because of ld-time binding performed by -Bsymbolic-functions, but I'm changing them with the goal of making ld-time binding purely an optimization rather than relying on it for semantic purposes. in the case of memmove's call to memcpy, making it explicit that the memmove asm is assuming the forward-copying behavior of the memcpy asm is desirable anyway; in case memcpy is ever changed, the semantic mismatch would be apparent while editing memmcpy.s. --- src/math/i386/exp.s | 3 +++ src/math/i386/expl.s | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'src/math') diff --git a/src/math/i386/exp.s b/src/math/i386/exp.s index abb90369..c7aa5b6e 100644 --- a/src/math/i386/exp.s +++ b/src/math/i386/exp.s @@ -72,8 +72,11 @@ exp2f: jmp 1f .global exp2l +.global __exp2l +.hidden __exp2l .type exp2l,@function exp2l: +__exp2l: fldt 4(%esp) jmp 1f diff --git a/src/math/i386/expl.s b/src/math/i386/expl.s index 61ef1ddc..b5124e8f 100644 --- a/src/math/i386/expl.s +++ b/src/math/i386/expl.s @@ -37,7 +37,8 @@ expl: fstpt (%esp) fstpt 16(%esp) fstpt 32(%esp) - call exp2l +.hidden __exp2l + call __exp2l # if 2^hi == inf return 2^hi fld %st(0) fstpt (%esp) -- cgit v1.2.1