From 9bdd73ad250eb25f3870b323c579837521c73425 Mon Sep 17 00:00:00 2001
From: Jonathan Schleifer <js@webkeks.org>
Date: Fri, 10 Jan 2014 21:06:39 +0100
Subject: [PATCH 05/10] 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 b0c657b..1884bc1 100644
a
|
b
|
__fedisableexcept(int mask)
|
207 | 207 | return (~omask); |
208 | 208 | } |
209 | 209 | |
210 | | __weak_reference(__feenableexcept, feenableexcept); |
211 | | __weak_reference(__fedisableexcept, fedisableexcept); |
| 210 | int feenableexcept(int) __attribute__((weak, alias("__feenableexcept"))); |
| 211 | 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 b740ea3..e040d98 100644
a
|
b
|
|
9 | 9 | #include "math_private.h" |
10 | 10 | |
11 | 11 | float |
12 | | __dremf(x, y) |
13 | | float x, y; |
| 12 | __dremf(float x, float y) |
14 | 13 | { |
15 | 14 | return __remainderf(x, y); |
16 | 15 | } |
17 | | weak_alias (__dremf, dremf) |
| 16 | |
| 17 | float dremf(float, float) __attribute__((weak, alias("__dremf"))); |