From 4683fcc35c07a3ca188224536eba8af10e73bf8c Mon Sep 17 00:00:00 2001 From: Jonathan Schleifer Date: Fri, 10 Jan 2014 21:06:39 +0100 Subject: [PATCH] glibc: Correctly create weak symbols. --- src/system/libroot/posix/arch/x86/fenv.c | 4 ++-- src/system/libroot/posix/glibc/arch/generic/w_dremf.c | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/system/libroot/posix/arch/x86/fenv.c b/src/system/libroot/posix/arch/x86/fenv.c index b0c657b653..1884bc1444 100644 --- a/src/system/libroot/posix/arch/x86/fenv.c +++ b/src/system/libroot/posix/arch/x86/fenv.c @@ -207,5 +207,5 @@ __fedisableexcept(int mask) return (~omask); } -__weak_reference(__feenableexcept, feenableexcept); -__weak_reference(__fedisableexcept, fedisableexcept); +int feenableexcept(int) __attribute__((weak, alias("__feenableexcept"))); +int fedisableexcept(int) __attribute__((weak, alias("__fedisableexcept"))); diff --git a/src/system/libroot/posix/glibc/arch/generic/w_dremf.c b/src/system/libroot/posix/glibc/arch/generic/w_dremf.c index b740ea304c..e040d986db 100644 --- a/src/system/libroot/posix/glibc/arch/generic/w_dremf.c +++ b/src/system/libroot/posix/glibc/arch/generic/w_dremf.c @@ -9,9 +9,9 @@ #include "math_private.h" float -__dremf(x, y) - float x, y; +__dremf(float x, float y) { return __remainderf(x, y); } -weak_alias (__dremf, dremf) + +float dremf(float, float) __attribute__((weak, alias("__dremf")));