public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Stefan Liebler <stli@linux.ibm.com>
To: Andreas Schwab <schwab@linux-m68k.org>,
	Stefan Liebler via Libc-alpha <libc-alpha@sourceware.org>
Cc: fweimer@redhat.com
Subject: Re: [PATCH] Fix linknamespace errors and local-plt-usages in nss_files.
Date: Wed, 14 Jul 2021 17:00:11 +0200	[thread overview]
Message-ID: <dfa889bf-ebb2-bf67-f4c6-9e9a7f62e2b2@linux.ibm.com> (raw)
In-Reply-To: <87h7gxdluk.fsf@igel.home>

On 14/07/2021 16:13, Andreas Schwab wrote:
> 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.
> 

Committed.

Thanks,
Stefan

      reply	other threads:[~2021-07-14 15:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-14 13:58 Stefan Liebler
2021-07-14 14:13 ` Andreas Schwab
2021-07-14 15:00   ` Stefan Liebler [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=dfa889bf-ebb2-bf67-f4c6-9e9a7f62e2b2@linux.ibm.com \
    --to=stli@linux.ibm.com \
    --cc=fweimer@redhat.com \
    --cc=libc-alpha@sourceware.org \
    --cc=schwab@linux-m68k.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).