mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-16 07:21:57 +03:00
2002-08-03 Roland McGrath <roland@redhat.com>
* include/libc-symbols.h: Fix [__ASSEMBLY__] -> [__ASSEMBLER__]. [__ASSEMBLER__] (hidden_weak): Define using hidden_def, or to empty. [__ASSEMBLER__] (HIDDEN_JUMPTARGET): New macro. * sysdeps/unix/sysv/linux/i386/makecontext.S: Use it for exit.
This commit is contained in:
@ -508,16 +508,22 @@
|
|||||||
are defined by its normal name and we need to create the
|
are defined by its normal name and we need to create the
|
||||||
__GI_* alias to it, in C __REDIRECT causes the function definition
|
__GI_* alias to it, in C __REDIRECT causes the function definition
|
||||||
to use __GI_* name and we need to add alias to the real name.
|
to use __GI_* name and we need to add alias to the real name.
|
||||||
hidden_proto and hidden_weak don't make sense for assembly. */
|
There is no reason to use hidden_weak over hidden_def in assembly,
|
||||||
# define hidden_def(name) strong_alias (name, __GI_##name)
|
but we provide it for consistency with the C usage.
|
||||||
# define hidden_weak(name) weak_alias (name, __GI_##name)
|
hidden_proto doesn't make sense for assembly but the equivalent
|
||||||
|
is to call via the HIDDEN_JUMPTARGET macro einstead of JUMPTARGET. */
|
||||||
|
# define hidden_def(name) strong_alias (name, __GI_##name)
|
||||||
|
# define hidden_weak(name) hidden_def (name)
|
||||||
# define hidden_ver(local, name) strong_alias (local, __GI_##name)
|
# define hidden_ver(local, name) strong_alias (local, __GI_##name)
|
||||||
|
# define HIDDEN_JUMPTARGET(name) __GI_##name
|
||||||
# endif
|
# endif
|
||||||
#else
|
#else
|
||||||
# ifndef __ASSEMBLY__
|
# ifndef __ASSEMBLER__
|
||||||
# define hidden_proto(name)
|
# define hidden_proto(name)
|
||||||
# define hidden_weak(name)
|
# else
|
||||||
# endif
|
# define HIDDEN_JUMPTARGET(name) JUMPTARGET(name)
|
||||||
|
# endif /* Not __ASSEMBLER__ */
|
||||||
|
# define hidden_weak(name)
|
||||||
# define hidden_def(name)
|
# define hidden_def(name)
|
||||||
# define hidden_ver(local, name)
|
# define hidden_ver(local, name)
|
||||||
#endif
|
#endif
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* Create new context.
|
/* Create new context.
|
||||||
Copyright (C) 2001 Free Software Foundation, Inc.
|
Copyright (C) 2001,02 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
Contributed by Ulrich Drepper <drepper@redhat.com>, 2001.
|
Contributed by Ulrich Drepper <drepper@redhat.com>, 2001.
|
||||||
|
|
||||||
@ -104,7 +104,7 @@ L(exitcode):
|
|||||||
exit the program with the return error value (-1). */
|
exit the program with the return error value (-1). */
|
||||||
|
|
||||||
2: pushl %eax
|
2: pushl %eax
|
||||||
call JUMPTARGET(exit)
|
call HIDDEN_JUMPTARGET(exit)
|
||||||
/* The 'exit' call should never return. In case it does cause
|
/* The 'exit' call should never return. In case it does cause
|
||||||
the process to terminate. */
|
the process to terminate. */
|
||||||
hlt
|
hlt
|
||||||
|
Reference in New Issue
Block a user