mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-08 10:20:15 +00:00
Only put versions on exported symbols.
This commit is contained in:
parent
dea8f5e1a0
commit
e501085c01
@ -71,11 +71,9 @@ __new_getrlimit (enum __rlimit_resource resource, struct rlimit *rlimits)
|
|||||||
return result;
|
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);
|
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);
|
weak_alias (__new_getrlimit, getrlimit);
|
||||||
#endif
|
#endif
|
||||||
|
@ -68,11 +68,9 @@ __new_setrlimit (enum __rlimit_resource resource, const struct rlimit *rlimits)
|
|||||||
return INLINE_SYSCALL (setrlimit, 2, resource, &rlimits_small);
|
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);
|
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);
|
weak_alias (__new_setrlimit, setrlimit);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user