Skip to content

Commit 7a83a75

Browse files
authored
Merge pull request #36 from bluca/manpage
Check manpage in git
2 parents 31ce2fc + 84adc9d commit 7a83a75

3 files changed

Lines changed: 41 additions & 1 deletion

File tree

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@ all:
22

33
dlopen-notes.1: dlopen-notes.py docs/dlopen-description.man Makefile
44
argparse-manpage \
5-
--output=$@ \
5+
--output=docs/$@ \
66
--pyfile=$< \
77
--function=make_parser \
88
--project-name=package-notes \
99
--include=docs/dlopen-description.man
1010

1111
install:
1212
install -m 755 -D dlopen-notes.py $(DESTDIR)/usr/bin/dlopen-notes
13+
install -m 644 -D docs/dlopen-notes.1 $(DESTDIR)/usr/share/man/man1/dlopen-notes.1
1314

1415
check:
1516
make -C test check

debian/dh-dlopenlibdeps.manpages

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
debian/dh_dlopenlibdeps.1
2+
usr/share/man/man1/dlopen-notes.1

docs/dlopen-notes.1

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
.TH DLOPEN\-NOTES.PY "1" "2024\-05\-22" "package\-notes" "Generated Python Manual"
2+
.SH NAME
3+
dlopen\-notes.py
4+
.SH SYNOPSIS
5+
.B dlopen\-notes.py
6+
[-r] [-s] [-f [FEATURE1,FEATURE2]] [-h] filename [filename ...]
7+
.SH DESCRIPTION
8+
Read .note.dlopen notes from ELF files and report the contents.
9+
.PP
10+
ELF binaries store link-time dependencies in their headers, which can be parsed
11+
by various tools. There is no machine-readable metadata about dependencies
12+
loaded at build time via
13+
.BR \%dlopen (3)
14+
available by default. The ELF Dlopen Metadata specification aims to fill this
15+
gap, by defining a common format.
16+
.PP
17+
This tool allows parsing such a note, and printing out the result in various
18+
formats.
19+
20+
.TP
21+
\fBfilename\fR
22+
Library file to extract notes from
23+
24+
.SH OPTIONS
25+
.TP
26+
\fB\-r\fR, \fB\-\-raw\fR
27+
Show the original JSON extracted from input files
28+
29+
.TP
30+
\fB\-s\fR, \fB\-\-sonames\fR
31+
List all sonames and their priorities, one soname per line
32+
33+
.TP
34+
\fB\-f\fR \fI\,[FEATURE1,FEATURE2]\/\fR, \fB\-\-features\fR \fI\,[FEATURE1,FEATURE2]\/\fR
35+
Describe features, can be specified multiple times
36+
37+
.SH COMMENTS
38+
If no option is specifed, \-\-raw is the default.

0 commit comments

Comments
 (0)