new module 'sd-dlopen'

Bruno Haible via Gnulib discussion list <[email protected]>
Newsgroups gmane.comp.lib.gnulib.bugs
Message-ID <14315034.ffcqd4kZat@cagnes>
Luca's paperwork with the FSF is complete. Therefore I committed the patches
promised in https://lists.gnu.org/archive/html/bug-gnulib/2026-07/msg00142.html.
Thanks Luca, for these contributions!


2026-08-27  Bruno Haible  <[email protected]>

	sd-dlopen: Fix test compilation error on Solaris 11.4.
	* lib/sd-dlopen.h: Disable the asm macros on Solaris.

	sd-dlopen: Fix test compilation error on NetBSD 10.
	* m4/sd-dlopen.m4 (gl_SD_DLOPEN): Test whether the assembler supports
	the section flag o. Define _SD_ELF_NOTE_SUPPORTS_REFERENCES.
	* lib/sd-dlopen.h (SD_ELF_NOTE_DLOPEN_ANCHORED) [!__clang__]: Use
	_SD_ELF_NOTE_SUPPORTS_REFERENCES from the autoconfiguration.

	sd-dlopen: Fix test compilation error on AlmaLinux 9 and CentOS 7.
	* m4/sd-dlopen.m4 (gl_SD_DLOPEN): Test whether the assembler supports
	the section flag R. Define _SD_ELF_NOTE_DLOPEN_SECTION_FLAGS.

	sd-dlopen: Reference the specification.
	* modules/sd-dlopen (Description): Add reference to the specification.
	* lib/sd-dlopen.h: Improve comments.

2026-08-27  Luca Boccassi  <[email protected]>

	sd-dlopen: Add tests.
	* tests/test-sd-dlopen.c: New file.
	* tests/test-sd-dlopen-disabled.c: New file.
	* tests/test-sd-dlopen.sh: New file.
	* modules/sd-dlopen-tests: New file.

	sd-dlopen: New module.
	* lib/sd-dlopen.h: New file, based on systemd/src/systemd/sd-dlopen.h.
	* m4/libdl.m4 (gl_LIBDL): Also set HAVE_DLOPEN and define HAVE_DLOPEN.
	* m4/sd-dlopen.m4: New file.
	* modules/sd-dlopen: New file.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.