embench / embench-iot

The main Embench repository
https://www.embench.org/
GNU General Public License v3.0
259 stars 105 forks source link

Handle sections by category, not by name #134

Open PaoloS02 opened 3 years ago

PaoloS02 commented 3 years ago

As suggested in issue #117 in order to avoid ambiguity when selecting the sections for the size benchmark, we should select them by category rather then by name. Categories selected through options --text, --data, --rodata and --bss should be grouped by looking at the attributes of the sections, like for elf the flags: SHF_WRITE, SHF_ALLOC, SHF_EXECINSTR. The same should apply to the macho format, with its own flags (advice on this is welcome).

Roger-Shepherd commented 3 years ago

This requires input from someone with either macho expertise or some time. I've found it difficult to locate up-to-date macho documentation. Even the lief sources don't appear to be completely up-to-date.....

This proposal also raises the issue of whether to/how to maintain backward compatibility. This was a consideration for the way in which macho handling has been added.