Debian Codegraph @

upstream/debian-unstable/man3/sd-dlopen.3

raw
1 '\" t
2 .TH "SD\-DLOPEN" "3" "" "systemd 261~rc3" "sd-dlopen"
3 .\" -----------------------------------------------------------------
4 .\" * Define some portability stuff
5 .\" -----------------------------------------------------------------
6 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
7 .\" http://bugs.debian.org/507673
8 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
9 .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
10 .ie \n(.g .ds Aq \(aq
11 .el .ds Aq '
12 .\" -----------------------------------------------------------------
13 .\" * set default formatting
14 .\" -----------------------------------------------------------------
15 .\" disable hyphenation
16 .nh
17 .\" disable justification (adjust text to left margin only)
18 .ad l
19 .\" -----------------------------------------------------------------
20 .\" * MAIN CONTENT STARTS HERE *
21 .\" -----------------------------------------------------------------
22 .SH "NAME"
23 sd-dlopen \- ELF dlopen metadata annotation macros
24 .SH "SYNOPSIS"
25 .sp
26 .ft B
27 .nf
28 #include <systemd/sd\-dlopen\&.h>
29 .fi
30 .ft
31 .HP \w'\fBpkg\-config\ \-\-cflags\ libsystemd\fR\ 'u
32 \fBpkg\-config \-\-cflags libsystemd\fR
33 .SH "DESCRIPTION"
34 .PP
35 sd\-dlopen\&.h
36 provides macros for embedding
37 \&.note\&.dlopen
38 metadata in ELF binaries, implementing the
39 \m[blue]\fBELF dlopen metadata\fR\m[]\&\s-2\u[1]\d\s+2
40 specification for declaring optional shared library dependencies that are loaded via
41 \fBdlopen\fR(3)
42 at runtime\&.
43 .PP
44 The header is self\-contained and does not require runtime linkage against
45 \fBlibsystemd\fR(3)\&. Projects only need the installed header to use the macros\&.
46 .PP
47 Package managers and build systems can read the embedded ELF notes to discover runtime dependencies that are not visible in ELF
48 \fBDT_NEEDED\fR
49 entries\&.
50 .PP
51 See
52 \fBSD_ELF_NOTE_DLOPEN\fR(3)
53 for details on the available macros and constants\&.
54 .SH "NOTES"
55 .PP
56 The macros described here are header\-only and do not require runtime linkage against
57 \fBlibsystemd\fR(3)\&. Only the installed header and include path (as provided by
58 \fBpkg\-config \-\-cflags libsystemd\fR) are needed\&.
59 .SH "HISTORY"
60 .PP
61 \fBSD_ELF_NOTE_DLOPEN()\fR
62 and associated macros and constants were added in version 261\&.
63 .SH "SEE ALSO"
64 .PP
65 \fBsystemd\fR(1), \fBSD_ELF_NOTE_DLOPEN\fR(3), \fBdlopen\fR(3)
66 .SH "NOTES"
67 .IP " 1." 4
68 ELF dlopen metadata
69 .RS 4
70 \%https://uapi-group.org/specifications/specs/elf_dlopen_metadata/
71 .RE