diff options
author | Mike Frysinger <vapier@gentoo.org> | 2011-12-03 12:16:56 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2011-12-03 12:18:30 -0500 |
commit | 46fa3f2fdc873d98818dcd5efae90c09a3b75a66 (patch) | |
tree | 159960e484bb375e12f2b7f4c2a18b97686ce06f /libc/misc/utmp/utent.c | |
parent | 0e9ee6c27f757badedc78d5ffb680f38b7824f38 (diff) |
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 <vapier@gentoo.org>
Diffstat (limited to 'libc/misc/utmp/utent.c')
-rw-r--r-- | libc/misc/utmp/utent.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libc/misc/utmp/utent.c b/libc/misc/utmp/utent.c index 11d615437..f97cad3c8 100644 --- a/libc/misc/utmp/utent.c +++ b/libc/misc/utmp/utent.c @@ -146,6 +146,7 @@ struct utmp *getutid(const struct utmp *utmp_entry) return ret; } #endif +libc_hidden_def(getutid) struct utmp *getutline(const struct utmp *utmp_entry) { |