From 87078544f24cfbd355bf2f7e63a0d01ff7c96cca Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Sun, 1 Oct 2017 17:48:11 -0700 Subject: Hide internal __tcgetattr function [BZ #18822] Hide internal __tcgetattr function to allow direct access within libc.so and libc.a without using GOT nor PLT. [BZ #18822] * include/termios.h (__tcgetattr): Add libc_hidden_proto. * sysdeps/unix/bsd/tcgetattr.c (__tcgetattr): Add libc_hidden_def. * sysdeps/unix/sysv/linux/tcgetattr.c (__tcgetattr): Likewise. * termios/tcgetattr.c (__tcgetattr): Likewise. --- termios/tcgetattr.c | 1 + 1 file changed, 1 insertion(+) (limited to 'termios') diff --git a/termios/tcgetattr.c b/termios/tcgetattr.c index a5c076b1b0..12a56dd30f 100644 --- a/termios/tcgetattr.c +++ b/termios/tcgetattr.c @@ -39,4 +39,5 @@ __tcgetattr (int fd, struct termios *termios_p) } stub_warning (tcgetattr) +libc_hidden_def (__tcgetattr) weak_alias (__tcgetattr, tcgetattr) -- cgit 1.4.1