[Toybox] [PATCH] riscv: decode ELF header e_flags.
Rob Landley
rob at landley.net
Mon Oct 30 15:33:22 PDT 2023
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
More information about the Toybox
mailing list