glibc/nss/nss_files
Stefan Liebler 0e1f068108 Fix linknamespace errors and local-plt-usages in nss_files.
After commit f9c8b11ed7
"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 eeaa19f75e
"mntent: Use __putc_unlocked instead of fputc_unlocked")
2021-07-14 16:59:12 +02:00
..
files-alias.c Fix linknamespace errors and local-plt-usages in nss_files. 2021-07-14 16:59:12 +02:00
files-ethers.c nss: Access nss_files through direct references 2021-07-07 18:33:52 +02:00
files-grp.c nss: Access nss_files through direct references 2021-07-07 18:33:52 +02:00
files-hosts.c nss: Access nss_files through direct references 2021-07-07 18:33:52 +02:00
files-init.c nss: Access nss_files through direct references 2021-07-07 18:33:52 +02:00
files-initgroups.c Fix linknamespace errors and local-plt-usages in nss_files. 2021-07-14 16:59:12 +02:00
files-netgrp.c Fix linknamespace errors and local-plt-usages in nss_files. 2021-07-14 16:59:12 +02:00
files-network.c nss: Access nss_files through direct references 2021-07-07 18:33:52 +02:00
files-parse.c nss_files: Move into libc 2021-07-07 18:33:52 +02:00
files-proto.c nss: Access nss_files through direct references 2021-07-07 18:33:52 +02:00
files-pwd.c nss: Access nss_files through direct references 2021-07-07 18:33:52 +02:00
files-rpc.c nss: Access nss_files through direct references 2021-07-07 18:33:52 +02:00
files-service.c nss: Access nss_files through direct references 2021-07-07 18:33:52 +02:00
files-sgrp.c nss: Access nss_files through direct references 2021-07-07 18:33:52 +02:00
files-spwd.c nss: Access nss_files through direct references 2021-07-07 18:33:52 +02:00
files-XXX.c nss: Access nss_files through direct references 2021-07-07 18:33:52 +02:00