[PATCH] Fix linknamespace errors and local-plt-usages in nss_files.
Andreas Schwab
schwab@linux-m68k.org
Wed Jul 14 14:13:55 GMT 2021
On Jul 14 2021, Stefan Liebler via Libc-alpha wrote:
> After commit f9c8b11ed7726b858cd7b7cea0d3d7c5233d78cf
> "nss: Access nss_files through direct references",
> when building with -Os, multiple conform/.../linknamespace tests
> and elf/check-localplt are failing:
> Extra PLT reference: libc.so: fgetc_unlocked
> Extra PLT reference: libc.so: getline
>
> Or e.g.:
> [initial] glob -> [libc.a(glob.o)] __getpwnam_r -> [libc.a(getpwnam_r.o)] __nss_database_custom -> [libc.a(nsswitch.o)] __nss_module_get_function -> [libc.a(nss_module.o)] __nss_files_functions -> [libc.a(nss_files_functions.o)] _nss_files_endaliasent -> [libc.a(files-alias.o)] feof_unlocked
> [initial] glob -> [libc.a(glob.o)] __getpwnam_r -> [libc.a(getpwnam_r.o)] __nss_database_custom -> [libc.a(nsswitch.o)] __nss_module_get_function -> [libc.a(nss_module.o)] __nss_files_functions -> [libc.a(nss_files_functions.o)] _nss_files_endaliasent -> [libc.a(files-alias.o)] fgetc_unlocked
> [initial] glob -> [libc.a(glob.o)] __getpwnam_r -> [libc.a(getpwnam_r.o)] __nss_database_custom -> [libc.a(nsswitch.o)] __nss_module_get_function -> [libc.a(nss_module.o)] __nss_files_functions -> [libc.a(nss_files_functions.o)] _nss_files_endnetgrent -> [libc.a(files-netgrp.o)] getline
>
> This patch is using the hidden symbols where possible.
> Instead of fputc_unlocked, __putc_unlocked is used.
> (Compare to commit eeaa19f75e52d2d48074ae0c423f2311d67c42c6
> "mntent: Use __putc_unlocked instead of fputc_unlocked")
Ok.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1
"And now for something completely different."
More information about the Libc-alpha
mailing list