This is the mail archive of the
elfutils-devel@sourceware.org
mailing list for the elfutils project.
Re: known-elf.awk/known-elf.h
- From: Petr Machata <pmachata at redhat dot com>
- To: elfutils-devel at lists dot fedorahosted dot org
- Date: Tue, 31 Mar 2015 17:09:13 +0200
- Subject: Re: known-elf.awk/known-elf.h
Mark Wielaard <mjw@redhat.com> writes:
> And you can match against EM_##ARCH in the per-arch executor to select
> 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) \
{ \
ELF_ALL_KNOWN_DT_##ARCH \
}
>> I'm attaching the script as well as the generated .h for preliminary
>> 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.
Thanks,
Petr