aboutsummaryrefslogtreecommitdiff
path: root/ltrace-elf.c
diff options
context:
space:
mode:
authorPetr Machata <pmachata@redhat.com>2012-05-30 11:08:39 -0400
committerPetr Machata <pmachata@redhat.com>2012-08-29 19:03:18 +0200
commit4d4e1b853db0c97b7c7f023bc301e3c3eee58ce4 (patch)
treef851d5aa8f1f2ea32210f86f9c65226e9570aaef /ltrace-elf.c
parent82b1977bfdc0c31be26454257db28a1cb497fbf2 (diff)
downloadltrace-4d4e1b853db0c97b7c7f023bc301e3c3eee58ce4.tar.gz
Track elf class in struct Process
Technically only s390 needs this at the moment, but it seems general enough that it should be alongside the e_machine flag. Eventually it is desirable to replace both fields with either a backend-provided ABI enum, or with an ABI object that would implement the interesting back end calls.
Diffstat (limited to 'ltrace-elf.c')
-rw-r--r--ltrace-elf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ltrace-elf.c b/ltrace-elf.c
index 76ba3ae..c8667a7 100644
--- a/ltrace-elf.c
+++ b/ltrace-elf.c
@@ -736,6 +736,7 @@ ltelf_read_library(struct library *lib, struct Process *proc,
}
proc->e_machine = lte.ehdr.e_machine;
+ proc->e_class = lte.ehdr.e_ident[EI_CLASS];
int status = 0;
if (lib == NULL)