summaryrefslogtreecommitdiff
path: root/libdw/dwarf_getcfi.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdw/dwarf_getcfi.c')
-rw-r--r--libdw/dwarf_getcfi.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libdw/dwarf_getcfi.c b/libdw/dwarf_getcfi.c
index 51932cd9..afa8a460 100644
--- a/libdw/dwarf_getcfi.c
+++ b/libdw/dwarf_getcfi.c
@@ -57,6 +57,11 @@ dwarf_getcfi (Dwarf *dbg)
cfi->datarel = 0;
cfi->e_ident = (unsigned char *) elf_getident (dbg->elf, NULL);
+
+ GElf_Ehdr ehdr;
+ gelf_getehdr (dbg->elf, &ehdr);
+ cfi->e_machine = ehdr.e_machine;
+
cfi->other_byte_order = dbg->other_byte_order;
cfi->default_same_value = false;