Only put versions on exported symbols.

This commit is contained in:
Ulrich Drepper 1999-12-21 16:18:25 +00:00
parent dea8f5e1a0
commit e501085c01
2 changed files with 6 additions and 10 deletions

View File

@ -71,11 +71,9 @@ __new_getrlimit (enum __rlimit_resource resource, struct rlimit *rlimits)
return result;
}
#if defined PIC && DO_VERSIONING
default_symbol_version (__new_getrlimit, __getrlimit, GLIBC_2.1.3);
strong_alias (__new_getrlimit, _new_getrlimit);
default_symbol_version (_new_getrlimit, getrlimit, GLIBC_2.1.3);
#else
weak_alias (__new_getrlimit, __getrlimit);
#if defined PIC && DO_VERSIONING
default_symbol_version (__new_getrlimit, getrlimit, GLIBC_2.1.3);
#else
weak_alias (__new_getrlimit, getrlimit);
#endif

View File

@ -68,11 +68,9 @@ __new_setrlimit (enum __rlimit_resource resource, const struct rlimit *rlimits)
return INLINE_SYSCALL (setrlimit, 2, resource, &rlimits_small);
}
#if defined PIC && DO_VERSIONING
default_symbol_version (__new_setrlimit, __setrlimit, GLIBC_2.1.3);
strong_alias (__new_setrlimit, _new_setrlimit);
default_symbol_version (_new_setrlimit, setrlimit, GLIBC_2.1.3);
#else
weak_alias (__new_setrlimit, __setrlimit);
#if defined PIC && DO_VERSIONING
default_symbol_version (__new_setrlimit, setrlimit, GLIBC_2.1.3);
#else
weak_alias (__new_setrlimit, setrlimit);
#endif