From 46fa3f2fdc873d98818dcd5efae90c09a3b75a66 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sat, 3 Dec 2011 12:16:56 -0500 Subject: getutid: add a hidden def The pututline func calls getutid, so add a hidden def for it to avoid plt relocs: $ readelf -r lib/libc.so.0 ... Relocation section '.rela.plt' at offset 0xb058 contains 11 entries: Offset Info Type Sym. Value Sym. Name + Addend 000000236000 01cf00000007 R_X86_64_JUMP_SLO 00000000000190ab getutid + 0 ... Signed-off-by: Mike Frysinger --- include/utmp.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/utmp.h') diff --git a/include/utmp.h b/include/utmp.h index e80b65b7d..10b75c9a0 100644 --- a/include/utmp.h +++ b/include/utmp.h @@ -78,6 +78,7 @@ libc_hidden_proto(endutent) /* Search forward from the current point in the utmp file until the next entry with a ut_type matching ID->ut_type. */ extern struct utmp *getutid (__const struct utmp *__id) __THROW; +libc_hidden_proto(getutid) /* Search forward from the current point in the utmp file until the next entry with a ut_line matching LINE->ut_line. */ -- cgit v1.2.3