about summary refs log tree commit diff
path: root/debug/read_chk.c
diff options
context:
space:
mode:
authorFrédéric Bérat <fberat@redhat.com>2023-06-07 11:34:36 +0200
committerFrédéric Bérat <fberat@redhat.com>2023-07-05 16:59:48 +0200
commitb17d65ff927241d2bc36cbfe258431bec2ffad1b (patch)
tree243485f37e989122e82430b951521e82a816f359 /debug/read_chk.c
parent391f5e9619ef540eea00fb622f4381dae9d8cb44 (diff)
downloadglibc-b17d65ff927241d2bc36cbfe258431bec2ffad1b.tar.gz
glibc-b17d65ff927241d2bc36cbfe258431bec2ffad1b.tar.xz
glibc-b17d65ff927241d2bc36cbfe258431bec2ffad1b.zip
unistd: Avoid PLT entries with _FORTIFY_SOURCE
The change is meant to avoid unwanted PLT entries for the read_chk,
getdomainname_chk and getlogin_r_chk routines when _FORTIFY_SOURCE is set.

Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
Diffstat (limited to 'debug/read_chk.c')
-rw-r--r--debug/read_chk.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/debug/read_chk.c b/debug/read_chk.c
index 17588736a1..75d902a8ba 100644
--- a/debug/read_chk.c
+++ b/debug/read_chk.c
@@ -25,3 +25,4 @@ __read_chk (int fd, void *buf, size_t nbytes, size_t buflen)
 
   return __read (fd, buf, nbytes);
 }
+libc_hidden_def (__read_chk)