From owner-freebsd-arm@freebsd.org Sat Oct 7 21:48:53 2017 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5FA39E4304A for ; Sat, 7 Oct 2017 21:48:53 +0000 (UTC) (envelope-from linimon@lonesome.com) Received: from mail.soaustin.net (mail.soaustin.net [192.108.105.60]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mail.soaustin.net", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 676DCE1A; Sat, 7 Oct 2017 21:48:52 +0000 (UTC) (envelope-from linimon@lonesome.com) Received: from lonesome.com (bones.soaustin.net [192.108.105.22]) by mail.soaustin.net (Postfix) with ESMTPSA id E771E738; Sat, 7 Oct 2017 16:48:50 -0500 (CDT) Date: Sat, 7 Oct 2017 16:48:49 -0500 From: Mark Linimon To: Ian Lepore Cc: Guy Yur , Warner Losh , freebsd-arm , linimon@FreeBSD.org Subject: Re: armv7, building p7zip and -fPIC Message-ID: <20171007214849.GB22150@lonesome.com> References: <1507403387.86205.286.camel@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1507403387.86205.286.camel@freebsd.org> User-Agent: Mutt/1.5.23 (2014-03-12) X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Oct 2017 21:48:53 -0000 On Sat, Oct 07, 2017 at 01:09:47PM -0600, Ian Lepore wrote: > This is really not just an armv7-only thing, the -fPIC flag should > always be used. OK, I'm going to admit some ignorance and prepare to take my beating. The last time I tried to pepper some -fPIC flags around without knowing what I was doing, I was told (in no uncertain terms) that I didn't know what I was doing. While this was true I wasn't happy with the way I was told :-) So can you please provide a "-fPIC for dummies" summary? I'll add it to the wiki. (In my old embedded systems days, we didn't need all this fancy stuff; you just stuffed your statically-linked result in the 64KB EPROM and you were done.) mcl