From: Adam Sampson <ats@offog.org>
To: libc-alpha@sourceware.org
Cc: Adam Sampson <ats@offog.org>
Subject: [PATCH v2 0/2] ldconfig: Ignore all GDB extension files
Date: Mon, 6 May 2024 18:16:31 +0100 [thread overview]
Message-ID: <20240506171633.30008-1-ats@offog.org> (raw)
ldconfig already ignores files with the -gdb.py suffix, but GDB also
looks for -gdb.gdb and -gdb.scm files. These aren't as widely used, but
libguile at least comes with a -gdb.scm file.
These patches make ldconfig ignore all three types of file.
Changes from v1:
* Reuse ldconfig's endswithn function (suggested by Florian Weimer).
I didn't spot any other places that could use this directly, although
there are several tests that have implementations of startswith.
Adam Sampson (2):
ldconfig: Move endswithn into a new header file
ldconfig: Ignore all GDB extension files
elf/endswith.h | 33 +++++++++++++++++++++++++++++++++
elf/ldconfig.c | 12 +-----------
elf/readlib.c | 11 +++++++----
3 files changed, 41 insertions(+), 15 deletions(-)
create mode 100644 elf/endswith.h
--
2.45.0
next reply other threads:[~2024-05-06 17:16 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-06 17:16 Adam Sampson [this message]
2024-05-06 17:16 ` [PATCH v2 1/2] ldconfig: Move endswithn into a new header file Adam Sampson
2024-05-06 17:16 ` [PATCH v2 2/2] ldconfig: Ignore all GDB extension files Adam Sampson
2024-06-05 9:49 ` [PATCH v2 0/2] " Adam Sampson
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=20240506171633.30008-1-ats@offog.org \
--to=ats@offog.org \
--cc=libc-alpha@sourceware.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).