This is the mail archive of the elfutils-devel@sourceware.org mailing list for the elfutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]