From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/3620 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: [PATCH 1/3] PIE support for arm (copyright...) Date: Wed, 10 Jul 2013 17:03:43 -0400 Message-ID: <20130710210343.GH29800@brightrain.aerifal.cx> References: <1373463541-17170-1-git-send-email-timo.teras@iki.fi> <20130710192329.GA8092@newbook> <20130710192844.GC29800@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1373490240 5382 80.91.229.3 (10 Jul 2013 21:04:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 10 Jul 2013 21:04:00 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-3624-gllmg-musl=m.gmane.org@lists.openwall.com Wed Jul 10 23:04:02 2013 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1Ux1YK-0005Pu-SZ for gllmg-musl@plane.gmane.org; Wed, 10 Jul 2013 23:03:56 +0200 Original-Received: (qmail 11697 invoked by uid 550); 10 Jul 2013 21:03:56 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 11689 invoked from network); 10 Jul 2013 21:03:55 -0000 Content-Disposition: inline In-Reply-To: <20130710192844.GC29800@brightrain.aerifal.cx> User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:3620 Archived-At: On Wed, Jul 10, 2013 at 03:28:44PM -0400, Rich Felker wrote: > On Wed, Jul 10, 2013 at 12:23:29PM -0700, Isaac wrote: > > On Wed, Jul 10, 2013 at 04:38:59PM +0300, Timo Ter??s wrote: > > > --- > > > Originally based on the glibc's implementation, but as this is > > > very short function (of which only maybe 10 lines are from the > > > original work), and the rest is modified to suit musl. I believe > > > we could just place on public domain. > > > > (Disclaimer: IANAL) > > > > Ick. Don't do that. > > At least, not without review from a regular glibc contributor/maintainer, > > Eben Moglen, the author, or another authority who could state that it is > > the FSF's position that this does not infringe. > > > > While it seems minimal, there are other considerations: > > (0) If a court disagrees and rules that it is copyright infringement, > > what happens? > > > > (1) If it gets publicized, the potential for FUD is huge. > > > > (2) Even if it's fair use/de minimis, there is still a risk of legal action. > > And that alone is a big problem. > > In fact, the perception of a risk is a problem. > > Agreed. There is no reason to even look at, much less copy, glibc code > to do this. All that's needed for Scrt1.s is to make crt1.s > position-independent. I just wrote and committed my own Scrt1.s; it seems to be working. I believe the approach is slightly different, avoiding GOT slots for symbols which must be defined in the main program. (Note that main need not be defined in the main program; it can be defined in a shared library!) Rich