[PATCH 18/58] Mark internal utmp functions with attribute_hidden [BZ #18822]
Florian Weimer
fweimer@redhat.com
Sat Sep 2 20:58:00 GMT 2017
On 09/01/2017 07:59 PM, H.J. Lu wrote:
> Mark internal utmp functions with attribute_hidden to allow direct
> access within libc.so and libc.a without using GOT nor PLT.
>
> [BZ #18822]
> * include/utmp.h (__updwtmp): Add attribute_hidden.
> (__utmpname): Likewise.
> (__getutent): Likewise.
I believe this causes:
/home/bmg/build/glibcs/s390-linux-gnu/glibc/login/utmpdump.o: In
function `main':
/home/bmg/build/glibcs/s390-linux-gnu/glibc-src/login/programs/utmpdump.c:93:
undefined reference to `getutent'
collect2: error: ld returned 1 exit status
That's presumably due to the renaming business in
sysdeps/unix/sysv/linux/s390/s390-32/getutent*.c
Thanks,
Florian
More information about the Libc-alpha
mailing list