]> git.ipfire.org Git - thirdparty/elfutils.git/commit
backends: Use ebl->class consistently in sparc backend.
authorMark Wielaard <mjw@redhat.com>
Thu, 3 Sep 2015 10:50:54 +0000 (12:50 +0200)
committerMark Wielaard <mjw@redhat.com>
Thu, 3 Sep 2015 10:50:54 +0000 (12:50 +0200)
commitc3f93ad84e653a23a66d8fa4110292ed900ede25
treee2303aded753f9eb6060e2cbda1f9d71be2bfaca
parentb00a4fa78779ff0f304fa6cb34d49622679c86d4
backends: Use ebl->class consistently in sparc backend.

sparc_init would check the ELF class to register to correct core_note
handler. But sparc_register_info would check the ELF machine to determine
whether the register set was 32 or 64 bits. This caused some confusion
and assertion failures in readelf when printing core notes where the
sparc machine and class didn't seem to match up. Check the ELF class
in both sparc_unit and sparc_register_info to give consistent results.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
backends/ChangeLog
backends/sparc_regs.c