Ticket #10396: 0005-glibc-Correctly-create-weak-symbols.patch

File 0005-glibc-Correctly-create-weak-symbols.patch, 1.4 KB (added by js, 6 years ago)
  • src/system/libroot/posix/arch/x86/fenv.c

    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)  
    207207    return (~omask);
    208208}
    209209
    210 __weak_reference(__feenableexcept, feenableexcept);
    211 __weak_reference(__fedisableexcept, fedisableexcept);
     210int feenableexcept(int) __attribute__((weak, alias("__feenableexcept")));
     211int fedisableexcept(int) __attribute__((weak, alias("__fedisableexcept")));
  • src/system/libroot/posix/glibc/arch/generic/w_dremf.c

    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  
    99#include "math_private.h"
    1010
    1111float
    12 __dremf(x, y)
    13     float x, y;
     12__dremf(float x, float y)
    1413{
    1514    return __remainderf(x, y);
    1615}
    17 weak_alias (__dremf, dremf)
     16
     17float dremf(float, float) __attribute__((weak, alias("__dremf")));