public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] ldconfig: Ignore all GDB extension files
@ 2024-05-06 17:16 Adam Sampson
  2024-05-06 17:16 ` [PATCH v2 1/2] ldconfig: Move endswithn into a new header file Adam Sampson
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Adam Sampson @ 2024-05-06 17:16 UTC (permalink / raw)
  To: libc-alpha; +Cc: Adam Sampson

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-06-05  9:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-06 17:16 [PATCH v2 0/2] ldconfig: Ignore all GDB extension files Adam Sampson
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

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).