mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-27 04:52:05 +08:00
9e2bb0cb5e
Generate a .note.package FDO package metadata ELF note, following the spec: https://systemd.io/ELF_PACKAGE_METADATA/ If the jansson library is available at build time (and it is explicitly enabled), link ld to it, and use it to validate that the input is correct JSON, to avoid writing garbage to the file. The configure option --enable-jansson has to be used to explicitly enable it (error out when not found). This allows bootstrappers (or others who are not interested) to seamlessly skip it without issues.
7 lines
238 B
R
7 lines
238 B
R
#...
|
|
Displaying notes found in: \.note\.package
|
|
\s+Owner\s+Data\s+size\s+Description
|
|
\s+FDO\s+0x00000010\s+(Unknown note type:\s+\(0xcafe1a7e\)|FDO_PACKAGING_METADATA)
|
|
\s+(description data:\s+.*|Packaging Metadata:\s+{"foo":"bar"})
|
|
#pass
|