Remove bp-sym.h and BP_SYM uses from C code.

This commit is contained in:
Joseph Myers 2013-02-14 13:12:02 +00:00
parent cb57ce6031
commit e97ed6ddbe
27 changed files with 178 additions and 99 deletions

View File

@ -1,3 +1,90 @@
2013-02-14 Joseph Myers <joseph@codesourcery.com>
[BZ #13550]
* csu/libc-start.c: Do not include <bp-sym.h>.
[!LIBC_START_MAIN] (LIBC_START_MAIN): Do not use BP_SYM.
* elf/dl-open.c: Do not include <bp-sym.h>.
(_dl_sysdep_start): Do not use BP_SYM in weak_extern.
* math/fegetenv.c: Do not include <bp-sym.h>.
(fegetenv): Do not use BP_SYM in versioned symbols.
* nptl/sysdeps/pthread/bits/libc-lockP.h
[!__NO_WEAK_PTHREAD_ALIASES && weak_extern]: Do not include
<bp-sym.h>.
[!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
(__pthread_mutex_init): Do not use BP_SYM in weak_extern.
[!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
(__pthread_mutex_destroy): Likewise.
[!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
(__pthread_mutex_lock): Likewise.
[!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
(__pthread_mutex_trylock): Likewise.
[!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
(__pthread_mutex_unlock): Likewise.
[!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
(__pthread_mutexattr_init): Likewise.
[!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
(__pthread_mutexattr_destroy): Likewise.
[!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
(__pthread_mutexattr_settype): Likewise.
[!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
(__pthread_rwlock_init): Likewise.
[!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
(__pthread_rwlock_destroy): Likewise.
[!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
(__pthread_rwlock_rdlock): Likewise.
[!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
(__pthread_rwlock_tryrdlock): Likewise.
[!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
(__pthread_rwlock_wrlock): Likewise.
[!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
(__pthread_rwlock_trywrlock): Likewise.
[!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
(__pthread_rwlock_unlock): Likewise.
[!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
(__pthread_key_create): Likewise.
[!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
(__pthread_setspecific): Likewise.
[!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
(__pthread_getspecific): Likewise.
[!__NO_WEAK_PTHREAD_ALIASES && weak_extern] (__pthread_once):
Likewise.
[!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
(_pthread_cleanup_push_defer): Likewise.
[!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
(_pthread_cleanup_pop_restore): Likewise.
[!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
(pthread_setcancelstate): Likewise.
* string/memchr.c [HAVE_BP_SYM_H || _LIBC]: Do not include
<bp-sym.h>.
[!(HAVE_BP_SYM_H || _LIBC)] (BP_SYM): Remove macro definition.
(memchr): Do not use BP_SYM in weak_alias.
* sysdeps/i386/fpu/fegetenv.c: Do not include <bp-sym.h>.
(fegetenv): Do not use BP_SYM in versioned symbols.
* sysdeps/i386/fpu/fesetenv.c: Do not include <bp-sym.h>.
(fesetenv): Do not use BP_SYM in versioned symbols.
* sysdeps/i386/fpu/feupdateenv.c: Do not include <bp-sym.h>.
(feupdateenv): Do not use BP_SYM in versioned symbols.
* sysdeps/i386/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
(fesetexceptflag): Do not use BP_SYM in versioned symbols.
* sysdeps/posix/open64.c: Do not include <bp-sym.h>.
(__open64): Do not use BP_SYM in weak_alias and libc_hidden_weak.
(open64): Do not use BP_SYM in weak_alias.
* sysdeps/powerpc/fpu/fegetenv.c: Do not include <bp-sym.h>.
(fegetenv): Do not use BP_SYM in versioned symbols.
* sysdeps/powerpc/fpu/fesetenv.c: Do not include <bp-sym.h>.
(fesetenv): Do not use BP_SYM in versioned symbols.
* sysdeps/powerpc/fpu/feupdateenv.c: Do not include <bp-sym.h>.
(feupdateenv): Do not use BP_SYM in versioned symbols.
* sysdeps/powerpc/fpu/fgetexcptflg.c: Do not include <bp-sym.h>.
(fegetexceptflag): Do not use BP_SYM in versioned symbols.
* sysdeps/powerpc/fpu/fraiseexcpt.c: Do not include <bp-sym.h>.
(feraiseexcept): Do not use BP_SYM in versioned symbols.
* sysdeps/powerpc/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
(fesetexceptflag): Do not use BP_SYM in versioned symbols.
* sysdeps/unix/sysv/linux/powerpc/libc-start.c: Do not include
<bp-sym.h>.
(__libc_start_main): Do not use BP_SYM.
2013-02-14 Siddhesh Poyarekar <siddhesh@redhat.com> 2013-02-14 Siddhesh Poyarekar <siddhesh@redhat.com>
* sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cpy): Remove * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cpy): Remove

View File

@ -19,7 +19,6 @@
#include <stdio.h> #include <stdio.h>
#include <unistd.h> #include <unistd.h>
#include <ldsodefs.h> #include <ldsodefs.h>
#include <bp-sym.h>
extern void __libc_init_first (int argc, char **argv, char **envp); extern void __libc_init_first (int argc, char **argv, char **envp);
#ifndef SHARED #ifndef SHARED
@ -86,7 +85,7 @@ apply_irel (void)
# endif # endif
#else #else
# define STATIC # define STATIC
# define LIBC_START_MAIN BP_SYM (__libc_start_main) # define LIBC_START_MAIN __libc_start_main
#endif #endif
#ifdef MAIN_AUXVEC_ARG #ifdef MAIN_AUXVEC_ARG

View File

@ -28,7 +28,6 @@
#include <sys/param.h> #include <sys/param.h>
#include <bits/libc-lock.h> #include <bits/libc-lock.h>
#include <ldsodefs.h> #include <ldsodefs.h>
#include <bp-sym.h>
#include <caller.h> #include <caller.h>
#include <sysdep-cancel.h> #include <sysdep-cancel.h>
#include <tls.h> #include <tls.h>
@ -43,7 +42,7 @@ extern ElfW(Addr) _dl_sysdep_start (void **start_argptr,
ElfW(Word) phnum, ElfW(Word) phnum,
ElfW(Addr) *user_entry, ElfW(Addr) *user_entry,
ElfW(auxv_t) *auxv)); ElfW(auxv_t) *auxv));
weak_extern (BP_SYM (_dl_sysdep_start)) weak_extern (_dl_sysdep_start)
extern int __libc_multiple_libcs; /* Defined in init-first.c. */ extern int __libc_multiple_libcs; /* Defined in init-first.c. */

View File

@ -19,7 +19,6 @@
#include <fenv.h> #include <fenv.h>
#include <shlib-compat.h> #include <shlib-compat.h>
#include <bp-sym.h>
int int
__fegetenv (fenv_t *envp) __fegetenv (fenv_t *envp)
@ -29,9 +28,9 @@ __fegetenv (fenv_t *envp)
} }
#if SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_2) #if SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_2)
strong_alias (__fegetenv, __old_fegetenv) strong_alias (__fegetenv, __old_fegetenv)
compat_symbol (libm, BP_SYM (__old_fegetenv), BP_SYM (fegetenv), GLIBC_2_1); compat_symbol (libm, __old_fegetenv, fegetenv, GLIBC_2_1);
#endif #endif
libm_hidden_ver (__fegetenv, fegetenv) libm_hidden_ver (__fegetenv, fegetenv)
versioned_symbol (libm, BP_SYM (__fegetenv), BP_SYM (fegetenv), GLIBC_2_2); versioned_symbol (libm, __fegetenv, fegetenv, GLIBC_2_2);
stub_warning (fegetenv) stub_warning (fegetenv)

View File

@ -375,31 +375,30 @@ extern int __pthread_atfork (void (*__prepare) (void),
single-threaded processes. */ single-threaded processes. */
#ifndef __NO_WEAK_PTHREAD_ALIASES #ifndef __NO_WEAK_PTHREAD_ALIASES
# ifdef weak_extern # ifdef weak_extern
# include <bp-sym.h> weak_extern (__pthread_mutex_init)
weak_extern (BP_SYM (__pthread_mutex_init)) weak_extern (__pthread_mutex_destroy)
weak_extern (BP_SYM (__pthread_mutex_destroy)) weak_extern (__pthread_mutex_lock)
weak_extern (BP_SYM (__pthread_mutex_lock)) weak_extern (__pthread_mutex_trylock)
weak_extern (BP_SYM (__pthread_mutex_trylock)) weak_extern (__pthread_mutex_unlock)
weak_extern (BP_SYM (__pthread_mutex_unlock)) weak_extern (__pthread_mutexattr_init)
weak_extern (BP_SYM (__pthread_mutexattr_init)) weak_extern (__pthread_mutexattr_destroy)
weak_extern (BP_SYM (__pthread_mutexattr_destroy)) weak_extern (__pthread_mutexattr_settype)
weak_extern (BP_SYM (__pthread_mutexattr_settype)) weak_extern (__pthread_rwlock_init)
weak_extern (BP_SYM (__pthread_rwlock_init)) weak_extern (__pthread_rwlock_destroy)
weak_extern (BP_SYM (__pthread_rwlock_destroy)) weak_extern (__pthread_rwlock_rdlock)
weak_extern (BP_SYM (__pthread_rwlock_rdlock)) weak_extern (__pthread_rwlock_tryrdlock)
weak_extern (BP_SYM (__pthread_rwlock_tryrdlock)) weak_extern (__pthread_rwlock_wrlock)
weak_extern (BP_SYM (__pthread_rwlock_wrlock)) weak_extern (__pthread_rwlock_trywrlock)
weak_extern (BP_SYM (__pthread_rwlock_trywrlock)) weak_extern (__pthread_rwlock_unlock)
weak_extern (BP_SYM (__pthread_rwlock_unlock)) weak_extern (__pthread_key_create)
weak_extern (BP_SYM (__pthread_key_create)) weak_extern (__pthread_setspecific)
weak_extern (BP_SYM (__pthread_setspecific)) weak_extern (__pthread_getspecific)
weak_extern (BP_SYM (__pthread_getspecific)) weak_extern (__pthread_once)
weak_extern (BP_SYM (__pthread_once))
weak_extern (__pthread_initialize) weak_extern (__pthread_initialize)
weak_extern (__pthread_atfork) weak_extern (__pthread_atfork)
weak_extern (BP_SYM (_pthread_cleanup_push_defer)) weak_extern (_pthread_cleanup_push_defer)
weak_extern (BP_SYM (_pthread_cleanup_pop_restore)) weak_extern (_pthread_cleanup_pop_restore)
weak_extern (BP_SYM (pthread_setcancelstate)) weak_extern (pthread_setcancelstate)
# else # else
# pragma weak __pthread_mutex_init # pragma weak __pthread_mutex_init
# pragma weak __pthread_mutex_destroy # pragma weak __pthread_mutex_destroy

View File

@ -1,3 +1,9 @@
2013-02-14 Joseph Myers <joseph@codesourcery.com>
[BZ #13550]
* sysdeps/alpha/memchr.c: Do not include <bp-sym.h>.
(memchr): Do not use BP_SYM in weak_alias.
2013-02-13 Joseph Myers <joseph@codesourcery.com> 2013-02-13 Joseph Myers <joseph@codesourcery.com>
[BZ #13550] [BZ #13550]

View File

@ -1,3 +1,19 @@
2013-02-14 Joseph Myers <joseph@codesourcery.com>
[BZ #13550]
* sysdeps/powerpc/nofpu/fegetenv.c: Do not include <bp-sym.h>.
(fegetenv): Do not use BP_SYM in versioned symbols.
* sysdeps/powerpc/nofpu/fesetenv.c: Do not include <bp-sym.h>.
(fesetenv): Do not use BP_SYM in versioned symbols.
* sysdeps/powerpc/nofpu/feupdateenv.c: Do not include <bp-sym.h>.
(feupdateenv): Do not use BP_SYM in versioned symbols.
* sysdeps/powerpc/nofpu/fgetexcptflg.c: Do not include <bp-sym.h>.
(fegetexceptflag): Do not use BP_SYM in versioned symbols.
* sysdeps/powerpc/nofpu/fraiseexcpt.c: Do not include <bp-sym.h>.
(feraiseexcept): Do not use BP_SYM in versioned symbols.
* sysdeps/powerpc/nofpu/fsetexcptflg.c: Do not include <bp-sym.h>.
(fesetexceptflag): Do not use BP_SYM in versioned symbols.
2013-01-02 Joseph Myers <joseph@codesourcery.com> 2013-01-02 Joseph Myers <joseph@codesourcery.com>
* All files with FSF copyright notices: Update copyright dates * All files with FSF copyright notices: Update copyright dates

View File

@ -16,7 +16,6 @@
<http://www.gnu.org/licenses/>. */ <http://www.gnu.org/licenses/>. */
#include <string.h> #include <string.h>
#include <bp-sym.h>
typedef unsigned long word; typedef unsigned long word;
@ -170,6 +169,6 @@ __memchr (const void *s, int xc, size_t n)
} }
#ifdef weak_alias #ifdef weak_alias
weak_alias (__memchr, BP_SYM (memchr)) weak_alias (__memchr, memchr)
#endif #endif
libc_hidden_builtin_def (memchr) libc_hidden_builtin_def (memchr)

View File

@ -19,7 +19,6 @@
#include "soft-fp.h" #include "soft-fp.h"
#include "soft-supp.h" #include "soft-supp.h"
#include <bp-sym.h>
extern int __sim_exceptions; extern int __sim_exceptions;
extern int __sim_disabled_exceptions; extern int __sim_disabled_exceptions;
@ -42,8 +41,8 @@ __fegetenv (fenv_t *envp)
#include <shlib-compat.h> #include <shlib-compat.h>
#if SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_2) #if SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_2)
strong_alias (__fegetenv, __old_fegetenv) strong_alias (__fegetenv, __old_fegetenv)
compat_symbol (libm, BP_SYM (__old_fegetenv), BP_SYM (fegetenv), GLIBC_2_1); compat_symbol (libm, __old_fegetenv, fegetenv, GLIBC_2_1);
#endif #endif
libm_hidden_ver (__fegetenv, fegetenv) libm_hidden_ver (__fegetenv, fegetenv)
versioned_symbol (libm, BP_SYM (__fegetenv), BP_SYM (fegetenv), GLIBC_2_2); versioned_symbol (libm, __fegetenv, fegetenv, GLIBC_2_2);

View File

@ -19,7 +19,6 @@
#include "soft-fp.h" #include "soft-fp.h"
#include "soft-supp.h" #include "soft-supp.h"
#include <bp-sym.h>
int int
__fesetenv (const fenv_t *envp) __fesetenv (const fenv_t *envp)
@ -36,8 +35,8 @@ __fesetenv (const fenv_t *envp)
#include <shlib-compat.h> #include <shlib-compat.h>
#if SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_2) #if SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_2)
strong_alias (__fesetenv, __old_fesetenv) strong_alias (__fesetenv, __old_fesetenv)
compat_symbol (libm, BP_SYM (__old_fesetenv), BP_SYM (fesetenv), GLIBC_2_1); compat_symbol (libm, __old_fesetenv, fesetenv, GLIBC_2_1);
#endif #endif
libm_hidden_ver (__fesetenv, fesetenv) libm_hidden_ver (__fesetenv, fesetenv)
versioned_symbol (libm, BP_SYM (__fesetenv), BP_SYM (fesetenv), GLIBC_2_2); versioned_symbol (libm, __fesetenv, fesetenv, GLIBC_2_2);

View File

@ -21,7 +21,6 @@
#include "soft-fp.h" #include "soft-fp.h"
#include "soft-supp.h" #include "soft-supp.h"
#include <signal.h> #include <signal.h>
#include <bp-sym.h>
int int
__feupdateenv (const fenv_t *envp) __feupdateenv (const fenv_t *envp)
@ -45,8 +44,8 @@ __feupdateenv (const fenv_t *envp)
#include <shlib-compat.h> #include <shlib-compat.h>
#if SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_2) #if SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_2)
strong_alias (__feupdateenv, __old_feupdateenv) strong_alias (__feupdateenv, __old_feupdateenv)
compat_symbol (libm, BP_SYM (__old_feupdateenv), BP_SYM (feupdateenv), GLIBC_2_1); compat_symbol (libm, __old_feupdateenv, feupdateenv, GLIBC_2_1);
#endif #endif
libm_hidden_ver (__feupdateenv, feupdateenv) libm_hidden_ver (__feupdateenv, feupdateenv)
versioned_symbol (libm, BP_SYM (__feupdateenv), BP_SYM (feupdateenv), GLIBC_2_2); versioned_symbol (libm, __feupdateenv, feupdateenv, GLIBC_2_2);

View File

@ -19,7 +19,6 @@
#include "soft-fp.h" #include "soft-fp.h"
#include "soft-supp.h" #include "soft-supp.h"
#include <bp-sym.h>
int int
__fegetexceptflag (fexcept_t *flagp, int excepts) __fegetexceptflag (fexcept_t *flagp, int excepts)
@ -32,7 +31,7 @@ __fegetexceptflag (fexcept_t *flagp, int excepts)
#include <shlib-compat.h> #include <shlib-compat.h>
#if SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_2) #if SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_2)
strong_alias (__fegetexceptflag, __old_fegetexceptflag) strong_alias (__fegetexceptflag, __old_fegetexceptflag)
compat_symbol (libm, BP_SYM (__old_fegetexceptflag), BP_SYM (fegetexceptflag), GLIBC_2_1); compat_symbol (libm, __old_fegetexceptflag, fegetexceptflag, GLIBC_2_1);
#endif #endif
versioned_symbol (libm, BP_SYM (__fegetexceptflag), BP_SYM (fegetexceptflag), GLIBC_2_2); versioned_symbol (libm, __fegetexceptflag, fegetexceptflag, GLIBC_2_2);

View File

@ -20,7 +20,6 @@
#include "soft-fp.h" #include "soft-fp.h"
#include "soft-supp.h" #include "soft-supp.h"
#include <signal.h> #include <signal.h>
#include <bp-sym.h>
#undef feraiseexcept #undef feraiseexcept
int int
@ -35,8 +34,8 @@ __feraiseexcept (int x)
#include <shlib-compat.h> #include <shlib-compat.h>
#if SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_2) #if SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_2)
strong_alias (__feraiseexcept, __old_feraiseexcept) strong_alias (__feraiseexcept, __old_feraiseexcept)
compat_symbol (libm, BP_SYM (__old_feraiseexcept), BP_SYM (feraiseexcept), GLIBC_2_1); compat_symbol (libm, __old_feraiseexcept, feraiseexcept, GLIBC_2_1);
#endif #endif
libm_hidden_ver (__feraiseexcept, feraiseexcept) libm_hidden_ver (__feraiseexcept, feraiseexcept)
versioned_symbol (libm, BP_SYM (__feraiseexcept), BP_SYM (feraiseexcept), GLIBC_2_2); versioned_symbol (libm, __feraiseexcept, feraiseexcept, GLIBC_2_2);

View File

@ -19,7 +19,6 @@
#include "soft-fp.h" #include "soft-fp.h"
#include "soft-supp.h" #include "soft-supp.h"
#include <bp-sym.h>
int int
__fesetexceptflag(const fexcept_t *flagp, int excepts) __fesetexceptflag(const fexcept_t *flagp, int excepts)
@ -33,7 +32,7 @@ __fesetexceptflag(const fexcept_t *flagp, int excepts)
#include <shlib-compat.h> #include <shlib-compat.h>
#if SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_2) #if SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_2)
strong_alias (__fesetexceptflag, __old_fesetexceptflag) strong_alias (__fesetexceptflag, __old_fesetexceptflag)
compat_symbol (libm, BP_SYM (__old_fesetexceptflag), BP_SYM (fesetexceptflag), GLIBC_2_1); compat_symbol (libm, __old_fesetexceptflag, fesetexceptflag, GLIBC_2_1);
#endif #endif
versioned_symbol (libm, BP_SYM (__fesetexceptflag), BP_SYM (fesetexceptflag), GLIBC_2_2); versioned_symbol (libm, __fesetexceptflag, fesetexceptflag, GLIBC_2_2);

View File

@ -47,11 +47,6 @@
#endif #endif
#include <sys/types.h> #include <sys/types.h>
#if HAVE_BP_SYM_H || defined _LIBC
#include <bp-sym.h>
#else
# define BP_SYM(sym) sym
#endif
#undef memchr #undef memchr
#undef __memchr #undef __memchr
@ -203,6 +198,6 @@ __memchr (s, c_in, n)
return 0; return 0;
} }
#ifdef weak_alias #ifdef weak_alias
weak_alias (__memchr, BP_SYM (memchr)) weak_alias (__memchr, memchr)
#endif #endif
libc_hidden_builtin_def (memchr) libc_hidden_builtin_def (memchr)

View File

@ -18,7 +18,6 @@
<http://www.gnu.org/licenses/>. */ <http://www.gnu.org/licenses/>. */
#include <fenv.h> #include <fenv.h>
#include <bp-sym.h>
int int
__fegetenv (fenv_t *envp) __fegetenv (fenv_t *envp)
@ -36,8 +35,8 @@ __fegetenv (fenv_t *envp)
#include <shlib-compat.h> #include <shlib-compat.h>
#if SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_2) #if SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_2)
strong_alias (__fegetenv, __old_fegetenv) strong_alias (__fegetenv, __old_fegetenv)
compat_symbol (libm, BP_SYM (__old_fegetenv), BP_SYM (fegetenv), GLIBC_2_1); compat_symbol (libm, __old_fegetenv, fegetenv, GLIBC_2_1);
#endif #endif
libm_hidden_ver (__fegetenv, fegetenv) libm_hidden_ver (__fegetenv, fegetenv)
versioned_symbol (libm, BP_SYM (__fegetenv), BP_SYM (fegetenv), GLIBC_2_2); versioned_symbol (libm, __fegetenv, fegetenv, GLIBC_2_2);

View File

@ -19,7 +19,6 @@
#include <fenv.h> #include <fenv.h>
#include <assert.h> #include <assert.h>
#include <bp-sym.h>
int int
@ -80,8 +79,8 @@ __fesetenv (const fenv_t *envp)
#include <shlib-compat.h> #include <shlib-compat.h>
#if SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_2) #if SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_2)
strong_alias (__fesetenv, __old_fesetenv) strong_alias (__fesetenv, __old_fesetenv)
compat_symbol (libm, BP_SYM (__old_fesetenv), BP_SYM (fesetenv), GLIBC_2_1); compat_symbol (libm, __old_fesetenv, fesetenv, GLIBC_2_1);
#endif #endif
libm_hidden_ver (__fesetenv, fesetenv) libm_hidden_ver (__fesetenv, fesetenv)
versioned_symbol (libm, BP_SYM (__fesetenv), BP_SYM (fesetenv), GLIBC_2_2); versioned_symbol (libm, __fesetenv, fesetenv, GLIBC_2_2);

View File

@ -18,7 +18,6 @@
<http://www.gnu.org/licenses/>. */ <http://www.gnu.org/licenses/>. */
#include <fenv.h> #include <fenv.h>
#include <bp-sym.h>
#include <unistd.h> #include <unistd.h>
#include <dl-procinfo.h> #include <dl-procinfo.h>
#include <ldsodefs.h> #include <ldsodefs.h>
@ -53,8 +52,8 @@ __feupdateenv (const fenv_t *envp)
#include <shlib-compat.h> #include <shlib-compat.h>
#if SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_2) #if SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_2)
strong_alias (__feupdateenv, __old_feupdateenv) strong_alias (__feupdateenv, __old_feupdateenv)
compat_symbol (libm, BP_SYM (__old_feupdateenv), BP_SYM (feupdateenv), GLIBC_2_1); compat_symbol (libm, __old_feupdateenv, feupdateenv, GLIBC_2_1);
#endif #endif
libm_hidden_ver (__feupdateenv, feupdateenv) libm_hidden_ver (__feupdateenv, feupdateenv)
versioned_symbol (libm, BP_SYM (__feupdateenv), BP_SYM (feupdateenv), GLIBC_2_2); versioned_symbol (libm, __feupdateenv, feupdateenv, GLIBC_2_2);

View File

@ -19,7 +19,6 @@
#include <fenv.h> #include <fenv.h>
#include <math.h> #include <math.h>
#include <bp-sym.h>
#include <unistd.h> #include <unistd.h>
#include <ldsodefs.h> #include <ldsodefs.h>
#include <dl-procinfo.h> #include <dl-procinfo.h>
@ -64,7 +63,7 @@ __fesetexceptflag (const fexcept_t *flagp, int excepts)
#include <shlib-compat.h> #include <shlib-compat.h>
#if SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_2) #if SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_2)
strong_alias (__fesetexceptflag, __old_fesetexceptflag) strong_alias (__fesetexceptflag, __old_fesetexceptflag)
compat_symbol (libm, BP_SYM (__old_fesetexceptflag), BP_SYM (fesetexceptflag), GLIBC_2_1); compat_symbol (libm, __old_fesetexceptflag, fesetexceptflag, GLIBC_2_1);
#endif #endif
versioned_symbol (libm, BP_SYM (__fesetexceptflag), BP_SYM (fesetexceptflag), GLIBC_2_2); versioned_symbol (libm, __fesetexceptflag, fesetexceptflag, GLIBC_2_2);

View File

@ -17,7 +17,6 @@
#include <fcntl.h> #include <fcntl.h>
#include <stdarg.h> #include <stdarg.h>
#include <bp-sym.h>
#include <sysdep-cancel.h> #include <sysdep-cancel.h>
/* Open FILE with access OFLAG. If OFLAG includes O_CREAT, /* Open FILE with access OFLAG. If OFLAG includes O_CREAT,
@ -46,6 +45,6 @@ __libc_open64 (const char *file, int oflag, ...)
return result; return result;
} }
weak_alias (__libc_open64, BP_SYM (__open64)) weak_alias (__libc_open64, __open64)
libc_hidden_weak (BP_SYM (__open64)) libc_hidden_weak (__open64)
weak_alias (__libc_open64, BP_SYM (open64)) weak_alias (__libc_open64, open64)

View File

@ -17,7 +17,6 @@
<http://www.gnu.org/licenses/>. */ <http://www.gnu.org/licenses/>. */
#include <fenv_libc.h> #include <fenv_libc.h>
#include <bp-sym.h>
int int
__fegetenv (fenv_t *envp) __fegetenv (fenv_t *envp)
@ -31,8 +30,8 @@ __fegetenv (fenv_t *envp)
#include <shlib-compat.h> #include <shlib-compat.h>
#if SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_2) #if SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_2)
strong_alias (__fegetenv, __old_fegetenv) strong_alias (__fegetenv, __old_fegetenv)
compat_symbol (libm, BP_SYM (__old_fegetenv), BP_SYM (fegetenv), GLIBC_2_1); compat_symbol (libm, __old_fegetenv, fegetenv, GLIBC_2_1);
#endif #endif
libm_hidden_ver (__fegetenv, fegetenv) libm_hidden_ver (__fegetenv, fegetenv)
versioned_symbol (libm, BP_SYM (__fegetenv), BP_SYM (fegetenv), GLIBC_2_2); versioned_symbol (libm, __fegetenv, fegetenv, GLIBC_2_2);

View File

@ -18,7 +18,6 @@
#include <fenv_libc.h> #include <fenv_libc.h>
#include <fpu_control.h> #include <fpu_control.h>
#include <bp-sym.h>
#define _FPU_MASK_ALL (_FPU_MASK_ZM | _FPU_MASK_OM | _FPU_MASK_UM | _FPU_MASK_XM | _FPU_MASK_IM) #define _FPU_MASK_ALL (_FPU_MASK_ZM | _FPU_MASK_OM | _FPU_MASK_UM | _FPU_MASK_XM | _FPU_MASK_IM)
@ -54,8 +53,8 @@ __fesetenv (const fenv_t *envp)
#include <shlib-compat.h> #include <shlib-compat.h>
#if SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_2) #if SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_2)
strong_alias (__fesetenv, __old_fesetenv) strong_alias (__fesetenv, __old_fesetenv)
compat_symbol (libm, BP_SYM (__old_fesetenv), BP_SYM (fesetenv), GLIBC_2_1); compat_symbol (libm, __old_fesetenv, fesetenv, GLIBC_2_1);
#endif #endif
libm_hidden_ver (__fesetenv, fesetenv) libm_hidden_ver (__fesetenv, fesetenv)
versioned_symbol (libm, BP_SYM (__fesetenv), BP_SYM (fesetenv), GLIBC_2_2); versioned_symbol (libm, __fesetenv, fesetenv, GLIBC_2_2);

View File

@ -19,7 +19,6 @@
#include <fenv_libc.h> #include <fenv_libc.h>
#include <fpu_control.h> #include <fpu_control.h>
#include <bp-sym.h>
#define _FPU_MASK_ALL (_FPU_MASK_ZM | _FPU_MASK_OM | _FPU_MASK_UM | _FPU_MASK_XM | _FPU_MASK_IM) #define _FPU_MASK_ALL (_FPU_MASK_ZM | _FPU_MASK_OM | _FPU_MASK_UM | _FPU_MASK_XM | _FPU_MASK_IM)
@ -61,8 +60,8 @@ __feupdateenv (const fenv_t *envp)
#include <shlib-compat.h> #include <shlib-compat.h>
#if SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_2) #if SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_2)
strong_alias (__feupdateenv, __old_feupdateenv) strong_alias (__feupdateenv, __old_feupdateenv)
compat_symbol (libm, BP_SYM (__old_feupdateenv), BP_SYM (feupdateenv), GLIBC_2_1); compat_symbol (libm, __old_feupdateenv, feupdateenv, GLIBC_2_1);
#endif #endif
libm_hidden_ver (__feupdateenv, feupdateenv) libm_hidden_ver (__feupdateenv, feupdateenv)
versioned_symbol (libm, BP_SYM (__feupdateenv), BP_SYM (feupdateenv), GLIBC_2_2); versioned_symbol (libm, __feupdateenv, feupdateenv, GLIBC_2_2);

View File

@ -17,7 +17,6 @@
<http://www.gnu.org/licenses/>. */ <http://www.gnu.org/licenses/>. */
#include <fenv_libc.h> #include <fenv_libc.h>
#include <bp-sym.h>
int int
__fegetexceptflag (fexcept_t *flagp, int excepts) __fegetexceptflag (fexcept_t *flagp, int excepts)
@ -37,7 +36,7 @@ __fegetexceptflag (fexcept_t *flagp, int excepts)
#include <shlib-compat.h> #include <shlib-compat.h>
#if SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_2) #if SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_2)
strong_alias (__fegetexceptflag, __old_fegetexceptflag) strong_alias (__fegetexceptflag, __old_fegetexceptflag)
compat_symbol (libm, BP_SYM (__old_fegetexceptflag), BP_SYM (fegetexceptflag), GLIBC_2_1); compat_symbol (libm, __old_fegetexceptflag, fegetexceptflag, GLIBC_2_1);
#endif #endif
versioned_symbol (libm, BP_SYM (__fegetexceptflag), BP_SYM (fegetexceptflag), GLIBC_2_2); versioned_symbol (libm, __fegetexceptflag, fegetexceptflag, GLIBC_2_2);

View File

@ -17,7 +17,6 @@
<http://www.gnu.org/licenses/>. */ <http://www.gnu.org/licenses/>. */
#include <fenv_libc.h> #include <fenv_libc.h>
#include <bp-sym.h>
#undef feraiseexcept #undef feraiseexcept
int int
@ -61,8 +60,8 @@ __feraiseexcept (int excepts)
#include <shlib-compat.h> #include <shlib-compat.h>
#if SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_2) #if SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_2)
strong_alias (__feraiseexcept, __old_feraiseexcept) strong_alias (__feraiseexcept, __old_feraiseexcept)
compat_symbol (libm, BP_SYM (__old_feraiseexcept), BP_SYM (feraiseexcept), GLIBC_2_1); compat_symbol (libm, __old_feraiseexcept, feraiseexcept, GLIBC_2_1);
#endif #endif
libm_hidden_ver (__feraiseexcept, feraiseexcept) libm_hidden_ver (__feraiseexcept, feraiseexcept)
versioned_symbol (libm, BP_SYM (__feraiseexcept), BP_SYM (feraiseexcept), GLIBC_2_2); versioned_symbol (libm, __feraiseexcept, feraiseexcept, GLIBC_2_2);

View File

@ -17,7 +17,6 @@
<http://www.gnu.org/licenses/>. */ <http://www.gnu.org/licenses/>. */
#include <fenv_libc.h> #include <fenv_libc.h>
#include <bp-sym.h>
int int
__fesetexceptflag (const fexcept_t *flagp, int excepts) __fesetexceptflag (const fexcept_t *flagp, int excepts)
@ -53,7 +52,7 @@ __fesetexceptflag (const fexcept_t *flagp, int excepts)
#include <shlib-compat.h> #include <shlib-compat.h>
#if SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_2) #if SHLIB_COMPAT (libm, GLIBC_2_1, GLIBC_2_2)
strong_alias (__fesetexceptflag, __old_fesetexceptflag) strong_alias (__fesetexceptflag, __old_fesetexceptflag)
compat_symbol (libm, BP_SYM (__old_fesetexceptflag), BP_SYM (fesetexceptflag), GLIBC_2_1); compat_symbol (libm, __old_fesetexceptflag, fesetexceptflag, GLIBC_2_1);
#endif #endif
versioned_symbol (libm, BP_SYM (__fesetexceptflag), BP_SYM (fesetexceptflag), GLIBC_2_2); versioned_symbol (libm, __fesetexceptflag, fesetexceptflag, GLIBC_2_2);

View File

@ -19,7 +19,6 @@
#include <unistd.h> #include <unistd.h>
#include <ldsodefs.h> #include <ldsodefs.h>
#include <sysdep.h> #include <sysdep.h>
#include <bp-sym.h>
int __cache_line_size attribute_hidden; int __cache_line_size attribute_hidden;
@ -40,14 +39,12 @@ struct startup_info
}; };
int int
/* GKM FIXME: GCC: this should get __BP_ prefix by virtue of the __libc_start_main (int argc, char **argv,
BPs in the arglist of startup_info.main and startup_info.init. */ char **ev,
BP_SYM (__libc_start_main) (int argc, char **argv, ElfW (auxv_t) * auxvec,
char **ev, void (*rtld_fini) (void),
ElfW (auxv_t) * auxvec, struct startup_info *stinfo,
void (*rtld_fini) (void), char **stack_on_entry)
struct startup_info *stinfo,
char **stack_on_entry)
{ {
/* the PPC SVR4 ABI says that the top thing on the stack will /* the PPC SVR4 ABI says that the top thing on the stack will
be a NULL pointer, so if not we assume that we're being called be a NULL pointer, so if not we assume that we're being called