binutils-gdb/ld/testsuite/ld-elf/package-note.rd
Luca Boccassi 9e2bb0cb5e ld: add --package-metadata
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.
2022-05-26 12:56:12 +09:30

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