aboutsummaryrefslogtreecommitdiff
path: root/libio
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2018-04-03 00:34:31 +0000
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2018-04-03 00:36:33 +0000
commit82dbf555a4d41690f63b94ccb4db4bf43d873aa0 (patch)
tree953438aa24310b2edd266dc9a056e948d4e53c32 /libio
parent62108dbf615381e08369491921f388a718dd002e (diff)
downloadglibc-82dbf555a4d41690f63b94ccb4db4bf43d873aa0.tar
glibc-82dbf555a4d41690f63b94ccb4db4bf43d873aa0.tar.gz
glibc-82dbf555a4d41690f63b94ccb4db4bf43d873aa0.tar.bz2
glibc-82dbf555a4d41690f63b94ccb4db4bf43d873aa0.zip
hurd: Avoid more libc.so local PLTs
* hurd/catch-signal.c (__hurd_catch_signal): Call __libc_siglongjmp instead if siglongjmp. (hurd_safe_memmove): Call __libc_longjmp instead of longjmp. * hurd/hurdfault.c (faulted): Call __libc_longjmp instead of longjmp. * include/setjmp.h (__libc_siglongjmp, __libc_longjmp): New hidden prototypes. * libio/iolibio.h (_IO_puts): New hidden prototype. * libio/ioputs.c (_IO_puts): New hidden def. * setjmp/longjmp.c (__libc_longjmp, __libc_siglongjmp): New hidden defs. * sysdeps/mach/hurd/sigwait.c (__sigwait): Call __libc_longjmp instead of longjmp.
Diffstat (limited to 'libio')
-rw-r--r--libio/iolibio.h1
-rw-r--r--libio/ioputs.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/libio/iolibio.h b/libio/iolibio.h
index 69e1c0e699..6c94fe6d62 100644
--- a/libio/iolibio.h
+++ b/libio/iolibio.h
@@ -41,6 +41,7 @@ extern char* _IO_gets (char*);
extern void _IO_perror (const char*) __THROW;
extern int _IO_printf (const char*, ...);
extern int _IO_puts (const char*);
+libc_hidden_proto (_IO_puts)
extern int _IO_scanf (const char*, ...);
extern void _IO_setbuffer (FILE *, char*, size_t) __THROW;
libc_hidden_proto (_IO_setbuffer)
diff --git a/libio/ioputs.c b/libio/ioputs.c
index 0a80fb7148..c9967c3883 100644
--- a/libio/ioputs.c
+++ b/libio/ioputs.c
@@ -46,3 +46,4 @@ _IO_puts (const char *str)
}
weak_alias (_IO_puts, puts)
+libc_hidden_def (_IO_puts)