summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 04:31:53 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-12 04:31:53 +0000
commit55197dbb298e7fab735efa7e17c2a8c53dc38380 (patch)
tree02d8a79ded9816ea094cfe9ab2df3d775ed234e7
parentAdding debian version 0.12. (diff)
downloadpackage-notes-55197dbb298e7fab735efa7e17c2a8c53dc38380.tar.xz
package-notes-55197dbb298e7fab735efa7e17c2a8c53dc38380.zip
Merging upstream version 0.13.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
-rw-r--r--README.md17
-rw-r--r--rpm/macros.package-notes-srpm3
2 files changed, 14 insertions, 6 deletions
diff --git a/README.md b/README.md
index 6dccd9d..5f38140 100644
--- a/README.md
+++ b/README.md
@@ -1,15 +1,22 @@
-ELF Package Notes Reference Implementation
+ELF Package and Dlopen Notes Reference Implementation
## Description
-This repository provides RPM and DEB packaging tools to generate an ELF note
-that will be linked into compiled binaries (programs and shared libraries) to
-provide metadata about the package for which the binary was compiled.
+This repository provides RPM and DEB packaging tools to generate an
+`.note.package` ELF note that will be linked into compiled binaries (programs
+and shared libraries) to provide metadata about the package for which the
+binary was compiled.
See [Package Metadata for Core Files](https://systemd.io/ELF_PACKAGE_METADATA/)
for the overview and details.
-The new `--package-metadata` option provided by bfd, gold, mold and lld is used.
+The new `--package-metadata` option provided by `bfd`, `gold`, `mold`, and `lld` is used.
+
+It also provides scripts to extract and display `.note.dlopen` ELF notes
+that are used to describe libraries loaded via `dlopen(3)`.
+
+See [`dlopen()` Metadata for ELF Files](https://systemd.io/ELF_DLOPEN_METADATA/)
+for the overview and details.
## Requirements
* binutils (>= 2.39)
diff --git a/rpm/macros.package-notes-srpm b/rpm/macros.package-notes-srpm
index a15d98c..ca9da31 100644
--- a/rpm/macros.package-notes-srpm
+++ b/rpm/macros.package-notes-srpm
@@ -22,7 +22,8 @@
# Overall status: 1 if looks like we can insert the note, 0 otherwise
# Unfortunately "clang" does not support specs files so the note insertion is disabled when using it.
-%_package_note_status %[0%{?_package_note_file:1} && 0%{?name:1} && "%_target_cpu" != "noarch" && "%{toolchain}" != "clang" ? 1 : 0]
+%_package_note_status %{!?_package_note_flags:0}%{?_package_note_flags:%[0%{?_package_note_file:1} && 0%{?name:1} && "%_target_cpu" != "noarch" && "%{toolchain}" != "clang" ? 1 : 0]}
+
# The linker flags to be passed to the compiler to insert the notes section will
# be created by the spec file, to avoid issues with quoting and escaping across