From c3bc1498e7806370dff49854e318ede8dacbbe03 Mon Sep 17 00:00:00 2001 From: Petr Machata Date: Sun, 19 Jul 2009 17:45:23 +0200 Subject: dwarflint: Forgot to commit the other_byte_order bit --- src/dwarflint.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/dwarflint.c b/src/dwarflint.c index 29238551..9ad978f1 100644 --- a/src/dwarflint.c +++ b/src/dwarflint.c @@ -1030,6 +1030,13 @@ elf_file_init (struct elf_file *file, Elf *elf) file->addr_64 = file->ehdr.e_ident[EI_CLASS] == ELFCLASS64; + /* Taken from dwarf_begin_elf.c. */ + if ((BYTE_ORDER == LITTLE_ENDIAN + && file->ehdr.e_ident[EI_DATA] == ELFDATA2MSB) + || (BYTE_ORDER == BIG_ENDIAN + && file->ehdr.e_ident[EI_DATA] == ELFDATA2LSB)) + file->other_byte_order = true; + struct secinfo { const char *name; -- cgit v1.2.1