[PATCH] Add support for ELF notes
Sebastian Huber
sebastian.huber at embedded-brains.de
Fri Mar 24 08:32:47 UTC 2023
On 23.03.23 20:07, Chris Johns wrote:
> On 24/3/2023 3:57 am, Sebastian Huber wrote:
>> On 23.03.23 17:52, Will wrote:
>>> Great idea to store this information in the executable itself. Does this need
>>> a RTEMS_TEST_STATE_LINK_ONLY test state or something similar for minimum.exe?
>>
>> With the notes you can build the test. The test runner would look at the notes
>> and then decide if it makes sense to run the test or not. It could still run the
>> minimum.exe and see if it terminates.
>
> I welcome notes support. Thanks for adding it.
>
> How will we control and manage the notes we support?
In the new elfnote.h header file there are defines for the note type
(domain-specific integer).
>
> Should we document the top level notes domains (?) with some we control and
> restrict and others users can use? For example `note.rtems.test`,
> `note.rtems.kernel`, `note.rtems.bsp`, and `note.rtems.user`?
The section name doesn't matter. You can divide the number space of the
note type for this.
>
> Do you have any host side tools in mind to access notes apart from the standards
> like readefl? Maybe the rtems-exe-info tool could do this?
Yes, it should be added to this tool. I think the most important use
case is the RTEMS tester currently. You can read the notes with the
elftools for Python.
--
embedded brains GmbH
Herr Sebastian HUBER
Dornierstr. 4
82178 Puchheim
Germany
email: sebastian.huber at 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 devel
mailing list