Date: Mon, 9 Feb 2015 12:38:40 +0100 From: Zbigniew Bodek <zbb@semihalf.com> To: sbruno@freebsd.org Cc: "freebsd-arm@freebsd.org" <freebsd-arm@freebsd.org> Subject: Re: armv7 and armv8 Message-ID: <CAG7dG%2BwdV5nB0WqRCzwhDW9=800s%2B292bL9wRT9jfBNMmYbBAg@mail.gmail.com> In-Reply-To: <54D6631F.9030207@ignoranthack.me> References: <54D6631F.9030207@ignoranthack.me>
next in thread | previous in thread | raw e-mail | index | archive | help
2015-02-07 20:10 GMT+01:00 Sean Bruno <sbruno@ignoranthack.me>: > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA512 > > Not sure if there's a difference in the ELF header for files on armv7/v8 > vs armv6. Can someone who has armv7 and arvm8 binaries somewhere send > me the following for each target arch? > > elfdump -e <file> > > and > > hexdump -C <file> > > sean > > p.s. > > for armv6 this is what I have: > > elfdump -e > /usr/local/poudriere/jails/11armv6/rescue/sh > > > elf header: > > e_ident: ELFCLASS32 ELFDATA2LSB ELFOSABI_SYSV > e_type: ET_EXEC > e_machine: EM_ARM > e_version: EV_CURRENT > e_entry: 0x8180 > e_phoff: 52 > e_shoff: 7954024 > e_flags: 83886082 > e_ehsize: 52 > e_phentsize: 32 > e_phnum: 5 > e_shentsize: 40 > e_shnum: 20 > e_shstrndx: 19 > > hexdump -C /usr/local/poudriere/jails/11armv6/rescue/sh | head > -2 > > 00000000 7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00 > |.ELF............| > 00000010 02 00 28 00 01 00 00 00 80 81 00 00 34 00 00 00 > |..(.........4...| > > > Hello Sean, armv8: elfdump -e sh elf header: e_ident: ELFCLASS64 ELFDATA2LSB ELFOSABI_SYSV e_type: ET_EXEC e_machine: EM_AARCH64 e_version: EV_CURRENT e_entry: 0x403250 e_phoff: 64 e_shoff: 133520 e_flags: 0 e_ehsize: 64 e_phentsize: 56 e_phnum: 7 e_shentsize: 64 e_shnum: 27 e_shstrndx: 26 hexdump -C sh | head -2 00000000 7f 45 4c 46 02 01 01 00 00 00 00 00 00 00 00 00 |.ELF............| 00000010 02 00 b7 00 01 00 00 00 50 32 40 00 00 00 00 00 |........P2@.....| Best regards zbb
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAG7dG%2BwdV5nB0WqRCzwhDW9=800s%2B292bL9wRT9jfBNMmYbBAg>