From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/9052 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: dynamic linker command line invocation Date: Mon, 4 Jan 2016 15:52:13 -0500 Message-ID: <20160104205213.GV238@brightrain.aerifal.cx> References: <20160104192206.GB2016@debian> 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 1451940752 30908 80.91.229.3 (4 Jan 2016 20:52:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 4 Jan 2016 20:52:32 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-9065-gllmg-musl=m.gmane.org@lists.openwall.com Mon Jan 04 21:52:32 2016 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1aGC7D-0003nV-1v for gllmg-musl@m.gmane.org; Mon, 04 Jan 2016 21:52:31 +0100 Original-Received: (qmail 9950 invoked by uid 550); 4 Jan 2016 20:52:28 -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 9930 invoked from network); 4 Jan 2016 20:52:27 -0000 Content-Disposition: inline In-Reply-To: <20160104192206.GB2016@debian> User-Agent: Mutt/1.5.21 (2010-09-15) Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:9052 Archived-At: On Mon, Jan 04, 2016 at 08:22:06PM +0100, Markus Wichmann wrote: > On Mon, Jan 04, 2016 at 11:59:16AM -0500, N Jain wrote: > > Hi All, > > > > I am trying to add ldso functionality in my kernel. I am loading the > > dynamic linker "ld-musl-arm.so.1" into memory and passing the other > > application as command line which requires the dynamic libraries but the > > linker is generating fault during stage 2 "__dls2" at some random location > > 0x464cc57f. > > > > Why don't you just set ld-musl-arm.so.1 as dynamic interpreter and > launch the application through the kernel? (Link with -Wl,-I,/lib/ld...) I believe you missed the point: N Jain is implementing a kernel. Rich