diff options
author | Frédéric Bérat <fberat@redhat.com> | 2023-06-07 11:34:36 +0200 |
---|---|---|
committer | Frédéric Bérat <fberat@redhat.com> | 2023-07-05 16:59:48 +0200 |
commit | b17d65ff927241d2bc36cbfe258431bec2ffad1b (patch) | |
tree | 243485f37e989122e82430b951521e82a816f359 /debug | |
parent | 391f5e9619ef540eea00fb622f4381dae9d8cb44 (diff) | |
download | glibc-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')
-rw-r--r-- | debug/getdomainname_chk.c | 1 | ||||
-rw-r--r-- | debug/read_chk.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/debug/getdomainname_chk.c b/debug/getdomainname_chk.c index ccea1b2d9e..a7492adf95 100644 --- a/debug/getdomainname_chk.c +++ b/debug/getdomainname_chk.c @@ -26,3 +26,4 @@ __getdomainname_chk (char *buf, size_t buflen, size_t nreal) return getdomainname (buf, buflen); } +libc_hidden_def (__getdomainname_chk) 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) |