From b17d65ff927241d2bc36cbfe258431bec2ffad1b Mon Sep 17 00:00:00 2001 From: Frédéric Bérat Date: Wed, 7 Jun 2023 11:34:36 +0200 Subject: 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 --- debug/getdomainname_chk.c | 1 + debug/read_chk.c | 1 + 2 files changed, 2 insertions(+) (limited to 'debug') 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) -- cgit 1.4.1