From owner-freebsd-arm@FreeBSD.ORG Tue Oct 7 15:45:07 2014 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 57A30339 for ; Tue, 7 Oct 2014 15:45:07 +0000 (UTC) Received: from mho-01-ewr.mailhop.org (mho-03-ewr.mailhop.org [204.13.248.66]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 2AC7428D for ; Tue, 7 Oct 2014 15:45:06 +0000 (UTC) Received: from [73.34.117.227] (helo=ilsoft.org) by mho-01-ewr.mailhop.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1XbWwj-000Jcf-7J; Tue, 07 Oct 2014 15:45:05 +0000 Received: from [172.22.42.240] (revolution.hippie.lan [172.22.42.240]) by ilsoft.org (8.14.9/8.14.9) with ESMTP id s97Fj2vM030718; Tue, 7 Oct 2014 09:45:02 -0600 (MDT) (envelope-from ian@FreeBSD.org) X-Mail-Handler: Dyn Standard SMTP by Dyn X-Originating-IP: 73.34.117.227 X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/sendlabs/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX187SH6JIHjuVb2uTUqLKtaA X-Authentication-Warning: paranoia.hippie.lan: Host revolution.hippie.lan [172.22.42.240] claimed to be [172.22.42.240] Subject: Re: Why are arm libs branded as SYSV? From: Ian Lepore To: Andrew Turner In-Reply-To: <20141007163440.02a402f8@bender.lan> References: <20141007163440.02a402f8@bender.lan> Content-Type: text/plain; charset="us-ascii" Date: Tue, 07 Oct 2014 09:45:01 -0600 Message-ID: <1412696701.12052.203.camel@revolution.hippie.lan> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit 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: Tue, 07 Oct 2014 15:45:07 -0000 On Tue, 2014-10-07 at 16:34 +0100, Andrew Turner wrote: > On Tue, 07 Oct 2014 16:56:49 +0200 > "Ronald Klop" wrote: > > > > > On my ARM Sheevaplug: > > # file /usr/local/lib/libpcre.so.3 > > /usr/local/lib/libpcre.so.3: ELF 32-bit LSB shared object, ARM, > > EABI5 version 1 (SYSV), dynamically linked, stripped > > > > On my amd64 computer: > > file /usr/local/lib/libpcre.so.3 > > /usr/local/lib/libpcre.so.3: ELF 64-bit LSB shared object, x86-64, > > version 1 (FreeBSD), dynamically linked, stripped > > > > Because of this I can not run ldd on a shared library on my ARM > > system. # ldd -a /usr/local/lib/libpcre.so.3 > > ldd: /usr/local/lib/libpcre.so.3: not a FreeBSD ELF shared object > > > > > > Is that on purpose? I am curious why that is. > > Because the EI_OSABI field, where this value comes from, is documented > to be zero in the ARM AAELF spec. > > Andrew Does this imply we have to update our elf tools to recognize the freebsd-ness of arm eabi objects in some other way? -- Ian