RFC: Add ELF note for description with JSON data
Sebastian Huber
sebastian.huber@embedded-brains.de
Wed Mar 29 15:04:55 GMT 2023
Hello Nick,
On 29.03.23 16:27, Nick Clifton wrote:
> Hi Sebastian,
>
>> I would like to add some metadata to executable ELF files for the
>> RTEMS real-time operating system.
>
> Have you considered using the --package-data linker option ?
>
> '--package-metadata=JSON'
> Request the creation of a '.note.package' ELF note section. The
> contents of the note are in JSON format, as per the package
> metadata specification. For more information see:
> https://systemd.io/ELF_PACKAGE_METADATA/ If the JSON argument is
> missing/empty then this will disable the creation of the metadata
> note, if one had been enabled by an earlier occurrence of the
> -package-metdata option. If the linker has been built with
> libjansson, then the JSON string will be validated.
thanks, this looks like the thing we need.
Independent of this, selecting the output format of readelf (and other
tools) would be nice.
--
embedded brains GmbH
Herr Sebastian HUBER
Dornierstr. 4
82178 Puchheim
Germany
email: sebastian.huber@embedded-brains.de
phone: +49-89-18 94 741 - 16
fax: +49-89-18 94 741 - 08
Registergericht: Amtsgericht München
Registernummer: HRB 157899
Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler
Unsere Datenschutzerklärung finden Sie hier:
https://embedded-brains.de/datenschutzerklaerung/
More information about the Binutils
mailing list