On 10/29/23 13:05, enh via Toybox wrote:
> ---
>  lib/lib.c            | 13 +++++++++++++
>  lib/lib.h            |  1 +
>  toys/other/readelf.c |  3 ++-
>  toys/posix/file.c    |  5 +++--
>  4 files changed, 19 insertions(+), 3 deletions(-)

I have a bad cold and am too unfocused to trust myself poking at the code to
much right now, but adding a riscv specific elf flag printing function to lib.c
and lib.h seems a bit... ew? That's not even a generic ELF function, that's
"flags for one architecture that can't figure out what it's ABI is" elf 
function.

Tempted to glue readelf.c and file.c together into the same source file so they
can share this function that way, but lemme try to get enough soup and cold
medicine to think clearly and maybe come up with a better solution...

Rob
_______________________________________________
Toybox mailing list
[email protected]
http://lists.landley.net/listinfo.cgi/toybox-landley.net

Reply via email to