Move elf class marker figuring to helper function, generalize a bit
authorPanu Matilainen <pmatilai@redhat.com>
Thu, 3 Jan 2013 10:59:13 +0000 (12:59 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Tue, 29 Jan 2013 06:12:13 +0000 (08:12 +0200)
commit015e394d736f30da51571ccc38af11bddf442de5
treeee6f055431093900dbba5abca394432929f55d62
parent0c87890cfd2258470d4a96cb3ae107f2f385feff
Move elf class marker figuring to helper function, generalize a bit

- Determine arch-specific issues by looking at the elf header instead
  of compile-time #ifdefs, so we'll generate correct dependencies for
  non-native elf binaries too. Currently this is just alpha which despite
  being a 64bit system, never had the (64bit) markers in its dependencies.
  Of course alpha has pretty much already met its mark^H^H er maker by now,
  but doing the right thing is cheap... Also we'll need similar special
  cases sooner or later for other archs (such as x32).
(cherry picked from commit f84a71cdc786a012fc9cbe16c5236c622ea970a4)
tools/elfdeps.c