mirror of
git://sourceware.org/git/glibc.git
synced 2025-02-17 13:00:43 +08:00
hurd: Avoid more libc.so PLTs
* sysdeps/hurd/include/hurd/signal.h (_hurd_raise_signal): Add hidden prototype. * hurd/hurd-raise.c (_hurd_raise_signal): Add hidden def. * hurd/Makefile ($(inlines:%=$(objpfx)%.c): Define _HEADER_H_HIDDEN_DEF macro. * sysdeps/hurd/include/hurd/fd.h (_hurd_fd_error, _hurd_fd_error_signal): Add hidden prototype. [_HURD_FD_H_HIDDEN_DEF] (_hurd_fd_error, _hurd_fd_error_signal): Add hidden def.
This commit is contained in:
parent
7a8f45e302
commit
a758c29399
@ -387,6 +387,15 @@
|
||||
* sysdeps/mach/include/mach.h: New file.
|
||||
* sysdeps/mach/include/mach/mig_support.h: New file.
|
||||
* sysdeps/mach/include/mach_error.h: New file.
|
||||
* sysdeps/hurd/include/hurd/signal.h (_hurd_raise_signal): Add hidden
|
||||
prototype.
|
||||
* hurd/hurd-raise.c (_hurd_raise_signal): Add hidden def.
|
||||
* hurd/Makefile ($(inlines:%=$(objpfx)%.c): Define
|
||||
_HEADER_H_HIDDEN_DEF macro.
|
||||
* sysdeps/hurd/include/hurd/fd.h (_hurd_fd_error,
|
||||
_hurd_fd_error_signal): Add hidden prototype.
|
||||
[_HURD_FD_H_HIDDEN_DEF] (_hurd_fd_error, _hurd_fd_error_signal): Add
|
||||
hidden def.
|
||||
|
||||
* sysdeps/mach/hurd/localplt.data: New file.
|
||||
|
||||
|
@ -79,6 +79,7 @@ shared-only-routines = compat-20
|
||||
$(inlines:%=$(objpfx)%.c): $(objpfx)%-inlines.c: %.h
|
||||
(h="`echo $(subst /,_,$*) | tr '[a-z]' '[A-Z]'`"; \
|
||||
echo "#define _$${h}_H_EXTERN_INLINE /* Define real function. */"; \
|
||||
echo "#define _$${h}_H_HIDDEN_DEF /* Declare hidden definition. */"; \
|
||||
echo '#include "$<"') > $@-new
|
||||
mv -f $@-new $@
|
||||
generated += $(inlines:=.c)
|
||||
|
@ -48,3 +48,4 @@ _hurd_raise_signal (struct hurd_sigstate *ss,
|
||||
other thread. */
|
||||
return __msg_sig_post (_hurd_msgport, 0, 0, __mach_task_self ());
|
||||
}
|
||||
libc_hidden_def (_hurd_raise_signal)
|
||||
|
@ -1,4 +1,10 @@
|
||||
#ifndef _HURD_FD_H
|
||||
#include_next <hurd/fd.h>
|
||||
libc_hidden_proto (_hurd_intern_fd)
|
||||
libc_hidden_proto (_hurd_fd_error)
|
||||
libc_hidden_proto (_hurd_fd_error_signal)
|
||||
#ifdef _HURD_FD_H_HIDDEN_DEF
|
||||
libc_hidden_def (_hurd_fd_error)
|
||||
libc_hidden_def (_hurd_fd_error_signal)
|
||||
#endif
|
||||
#endif
|
||||
|
@ -3,4 +3,5 @@
|
||||
libc_hidden_proto (_hurd_exception2signal)
|
||||
libc_hidden_proto (_hurd_intr_rpc_mach_msg)
|
||||
libc_hidden_proto (_hurd_thread_sigstate)
|
||||
libc_hidden_proto (_hurd_raise_signal)
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user