armv7 and armv8
Zbigniew Bodek
zbb at semihalf.com
Mon Feb 9 12:00:34 UTC 2015
2015-02-07 20:10 GMT+01:00 Sean Bruno <sbruno at 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 at .....|
Best regards
zbb
More information about the freebsd-arm
mailing list