From owner-freebsd-arm@FreeBSD.ORG Mon Feb 9 12:00:34 2015 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4870141D for ; Mon, 9 Feb 2015 12:00:34 +0000 (UTC) Received: from mail-yk0-f181.google.com (mail-yk0-f181.google.com [209.85.160.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0D2367D5 for ; Mon, 9 Feb 2015 12:00:33 +0000 (UTC) Received: by mail-yk0-f181.google.com with SMTP id 200so5750458ykr.12 for ; Mon, 09 Feb 2015 04:00:27 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=1vLH2R5zbC47aCN/9nlLjQvCtbIuGQXL9PqT3vfkdCI=; b=hA+SkH32Zfg8iBpxn45yrwu/WrVznYWVA1Syyqqf2S1DrYodYituikiisGTPHeM3Ie GR1UzZwr8reM7FWEo9jEIbfZ7pjYYyqbKexLnpAVdwGz9I6VsBP+bHRDlWplsjXQljP5 rfKCKim/qzWoeMvrwXM54vzQmr91PsKfq3pD5nVn92D1DnhtTUzYbKWaIXCqDHfuKivp C1hOtBlBaY526QFLzyhs73MJJ4mfNxNRoN/MzT9w/ty7EzzQ2XnYVMCdUg0EAGxj3lrs Z8IbPq8FZeMOh3gZu7Fx92PlMv4tcdMWdrV03hqi3MR5k5Ra+xeRS7pnWKdyKeVOzqWw F7VQ== X-Gm-Message-State: ALoCoQlv19rMDxJ9gkWSuIBYGny7sq9m7XhgVl5FZDQy/piWRpa0que0NPpBG5+/wDyj4IlG83/7 MIME-Version: 1.0 X-Received: by 10.170.172.5 with SMTP id o5mr6493823ykd.117.1423481920093; Mon, 09 Feb 2015 03:38:40 -0800 (PST) Received: by 10.170.131.132 with HTTP; Mon, 9 Feb 2015 03:38:40 -0800 (PST) In-Reply-To: <54D6631F.9030207@ignoranthack.me> References: <54D6631F.9030207@ignoranthack.me> Date: Mon, 9 Feb 2015 12:38:40 +0100 Message-ID: Subject: Re: armv7 and armv8 From: Zbigniew Bodek To: sbruno@freebsd.org Content-Type: text/plain; charset=UTF-8 Cc: "freebsd-arm@freebsd.org" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Feb 2015 12:00:34 -0000 2015-02-07 20:10 GMT+01:00 Sean Bruno : > > -----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 > > and > > hexdump -C > > 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