public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/8] Move nss_files into libc
@ 2021-06-07 17:37 Florian Weimer
  2021-06-07 17:38 ` [PATCH 1/8] nss: Fix NSS_DECLARE_MODULE_FUNCTIONS handling of _nss_*_endnetgrent Florian Weimer
                   ` (7 more replies)
  0 siblings, 8 replies; 10+ messages in thread
From: Florian Weimer @ 2021-06-07 17:37 UTC (permalink / raw)
  To: libc-alpha

I plan to use this to tackle the --enable-static-nss regression in glibc
2.33.

I plan to move nss_dns into libc as well, and then we can add a library
with dlopen stubs that blocks all dlopen calls.  If a programmer wants
to build a truly static binary, they can link with -lglibc-nodlopen (or
something like that), and the behavior will be as if glibc was
configured with --enable-static-nss.

Tested on i686-linux-gnu and x86_64-linux-gnu.  Built using
build-many-glibcs.py.

Thanks,
Florian

Florian Weimer (8):
  nss: Fix NSS_DECLARE_MODULE_FUNCTIONS handling of _nss_*_endnetgrent
  inet: Add hidden prototype for __inet_network
  libio: Add hidden prototype for ungetc
  libio: Replace internal _IO_getdelim symbol with __getdelim
  nss_files: Allocate nscd file registration data on the heap
  nss_files: Add generic code for set*ent, end*ent and file open
  nss_files: Move into libc
  nss: Access nss_files through direct references

 iconv/gconv_conf.c                      |   4 -
 include/arpa/inet.h                     |   2 +
 include/libc-symbols.h                  |  23 ----
 include/netdb.h                         |   2 +-
 include/nss_files.h                     |  80 +++++++++++-
 include/stdio.h                         |   2 +
 inet/inet_net.c                         |   4 +-
 libio/iogetdelim.c                      |   7 +-
 libio/ioungetc.c                        |   6 +-
 libio/libioP.h                          |   1 -
 nss/Makefile                            |  14 +--
 nss/Versions                            |  17 ++-
 nss/nss.h                               |   2 +-
 nss/nss_files/files-XXX.c               |  73 +++--------
 nss/nss_files/files-alias.c             |  86 ++++---------
 nss/nss_files/files-ethers.c            |   2 -
 nss/nss_files/files-grp.c               |   2 -
 nss/nss_files/files-hosts.c             |  17 +--
 nss/nss_files/files-init.c              |  58 ++++-----
 nss/nss_files/files-initgroups.c        |   3 +-
 nss/nss_files/files-netgrp.c            |  11 +-
 nss/nss_files/files-network.c           |   4 +-
 nss/nss_files/files-parse.c             |   8 +-
 nss/nss_files/files-proto.c             |   2 -
 nss/nss_files/files-pwd.c               |   2 -
 nss/nss_files/files-rpc.c               |   2 -
 nss/nss_files/files-service.c           |   2 -
 nss/nss_files/files-sgrp.c              |   2 -
 nss/nss_files/files-spwd.c              |   2 -
 nss/nss_files_data.c                    | 159 ++++++++++++++++++++++++
 nss/nss_files_functions.c               |  43 +++++++
 nss/nss_module.c                        |  38 +++++-
 nss/nss_module.h                        |   4 +
 nss/nss_readline.c                      |   4 +-
 stdio-common/getline.c                  |   2 +-
 sysdeps/unix/sysv/linux/readonly-area.c |   2 +-
 36 files changed, 440 insertions(+), 252 deletions(-)
 create mode 100644 nss/nss_files_data.c
 create mode 100644 nss/nss_files_functions.c

-- 
2.31.1


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

end of thread, other threads:[~2021-06-08 14:42 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-07 17:37 [PATCH 0/8] Move nss_files into libc Florian Weimer
2021-06-07 17:38 ` [PATCH 1/8] nss: Fix NSS_DECLARE_MODULE_FUNCTIONS handling of _nss_*_endnetgrent Florian Weimer
2021-06-08 14:42   ` Andreas Schwab
2021-06-07 17:38 ` [PATCH 2/8] inet: Add hidden prototype for __inet_network Florian Weimer
2021-06-07 17:38 ` [PATCH 3/8] libio: Add hidden prototype for ungetc Florian Weimer
2021-06-07 17:38 ` [PATCH 4/8] libio: Replace internal _IO_getdelim symbol with __getdelim Florian Weimer
2021-06-07 17:38 ` [PATCH 5/8] nss_files: Allocate nscd file registration data on the heap Florian Weimer
2021-06-07 17:38 ` [PATCH 6/8] nss_files: Add generic code for set*ent, end*ent and file open Florian Weimer
2021-06-07 17:38 ` [PATCH 7/8] nss_files: Move into libc Florian Weimer
2021-06-07 17:38 ` [PATCH 8/8] nss: Access nss_files through direct references Florian Weimer

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