Mark Wielaard <mjw(a)redhat.com> writes:
And you can match against EM_##ARCH in the per-arch executor to
the correct one for the ELF you are examining?
You could do something like this:
#define ELF_ONE_KNOWN_DT_ARCH (ARCH) \
if (ARCH == my_arch) \
> I'm attaching the script as well as the generated .h for
> assesment. Let me know if you think this would be a good addition to
> elfutils, and any comments that you might have. If this seems
> acceptable, I'll send a full-fledged patch.
I do like the idea. But there is one extra issue if we want this to be
an installed header like known-dwarf.h now is (and I think we do).
That would be the goal, yes.