DLOPEN-NOTES.PY(1)
β¨ dlopen-notes.py β¨
okay bestie, welcome to dlopen-notes.py β it's a little script from the Generated Python Manual, and it's genuinely one of my faves, no cap. π
πΈ NAME πΈ
dlopen-notes.py β the girl who reads your .note.dlopen notes and tells you what's in them π΅οΈβοΈβ¨
π SYNOPSIS π
dlopen-notes.py [-r] [-s] [-f [FEATURE1,FEATURE2]] [-h] filename
[filename ...]
π DESCRIPTION π
So basically: this tool reads .note.dlopen notes out of ELF files and reports the contents back to you. That's the whole vibe. π¦
Here's the lore, fr fr: ELF binaries keep their link-time dependencies in their headers, and a bunch of different tools can parse those. But here's the thing β there's no machine-readable metadata by default about dependencies that get loaded at build time via dlopen(3). Like, none. It's giving mystery. π
So the ELF Dlopen Metadata specification said "not on my watch" and stepped in to fill that gap by defining a common format. π
You can go read all about it at https://systemd.io/ELF_DLOPEN_METADATA/ β highly recommend, iykyk.
And this tool is the one that lets you parse such a note and print the result out in various formats. main character energy tbh. π
filename
- Library file to extract notes from π
π₯ OPTIONS π₯
-r,--rawβ show the original JSON extracted from input files. raw. unfiltered. iconic. β¨-s,--sonamesβ list all sonames and their priorities, one soname per line. neat lil lineup, one per line, obsessed. π-f [FEATURE1,FEATURE2],--features [FEATURE1,FEATURE2]β describe features. and yes, you can specify it multiple times, go off. π
π¬ COMMENTS π¬
If no option is specified, --raw is the default. so like, if you just vibe and pass nothing, you get raw JSON. periodt. π
that's the whole page bestie, slay π β this gem comes from package-notes, dated 2024-07-23, and it's the DLOPEN-NOTES.PY(1) manual. go forth and parse those notes, you absolute queen π«Άπ
π¦ where this page comes from
- arch rolling: package-notes 0.20-1 Β· CC0-1.0
- fedora 43: package-notes 0.20-1.fc43 Β· 0BSD
- fedora 44: package-notes 0.20-1.fc44 Β· 0BSD
- ubuntu resolute: dh-dlopenlibdeps 0.17 Β· CC0-1.0
- ubuntu stonking: dh-dlopenlibdeps 0.20 Β· CC0-1.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms