about summary refs log tree commit diff
path: root/include
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 /include
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 'include')
-rw-r--r--include/unistd.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/unistd.h b/include/unistd.h
index b042a485f9..e241603b81 100644
--- a/include/unistd.h
+++ b/include/unistd.h
@@ -32,6 +32,10 @@ libc_hidden_proto (readlinkat)
 libc_hidden_proto (fsync)
 libc_hidden_proto (fdatasync)
 
+libc_hidden_proto (__read_chk)
+libc_hidden_proto (__getdomainname_chk)
+libc_hidden_proto (__getlogin_r_chk)
+
 /* Now define the internal interfaces.  */
 extern int __access (const char *__name, int __type);
 libc_hidden_proto (__access)