From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/10119 Path: news.gmane.org!not-for-mail From: Khem Raj Newsgroups: gmane.linux.lib.musl.general Subject: Re: Dynamic linker name Date: Tue, 14 Jun 2016 07:43:34 -0700 Message-ID: References: Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=94eb2c04b5ee934fdb05353e07b3 X-Trace: ger.gmane.org 1465915444 11886 80.91.229.3 (14 Jun 2016 14:44:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 14 Jun 2016 14:44:04 +0000 (UTC) Cc: Luca Barbato To: musl@lists.openwall.com Original-X-From: musl-return-10132-gllmg-musl=m.gmane.org@lists.openwall.com Tue Jun 14 16:43:49 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 1bCpZF-0002WE-Bh for gllmg-musl@m.gmane.org; Tue, 14 Jun 2016 16:43:49 +0200 Original-Received: (qmail 31750 invoked by uid 550); 14 Jun 2016 14:43:47 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 30696 invoked from network); 14 Jun 2016 14:43:46 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=VDtewl5QRQ/ZS6f7wV0Iz/uU3OA/mV9mZhNQHtRnC04=; b=XUN1taE5bCUhqZjzZbIXWDOghc3lt9kjgAT3a4i/Dth7vBrnjJu9+cqErFQ4HVE/Ks 69t/NhdXMkHF2dvBrSDWCG9j88AVfL5rHvs8c6j1pQeRt2EH7S/VtZQYV/AhFbu1fOaN ByHFHD8U4AnmlYn4DD5s3GxMj7td48Th9Za5o36eUnB/uoYFF4nLOaEc/lu0gDLp3OFw TK2r7zoP8lTzicnN4Rh2qWPOu61Ha5NMlYJqCVjTExNpVQahqQN4v5JGsHIXGqeRVr02 UnWavs6o0XjGwdBkcAREbamnTcpE0cS16ZS6ScZ61s0MELmol6+zKwIApshxY0B9rqUG 7ywg== 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; bh=VDtewl5QRQ/ZS6f7wV0Iz/uU3OA/mV9mZhNQHtRnC04=; b=fCgIX6vibrLIpIJNPnypW2i6In1L06ObhAaTYxHfaanzQX01FgV6jeg2AH5OND8HeS 8+IiMzmb1lplCrs86PWGdRK2R0inIl4qzWC9kdt8SbWWdnR8KuFRWSapc48a1W4r6xO0 ZjQRQGuGh+Yjge54xqFKrbWCR0rA5PjpF+e86oB6lPP8lwlnZCSsmtNjiCsB8OWkIdM6 57t1GX7vKcvgxO1rHeNHNEJQIhGx1oVbqvRNJMY9syDJZKdSlcXHiuXwC18IKuV5mcyz jP9vuKCPssTJX1WPPufg3ndksFGesPySyhhv0RUxDl6Liopk/ldp8ZLNlzvXnqfyvVOf fZaw== X-Gm-Message-State: ALyK8tJ4SXFRdGRAwp1JxKdW6smWYnUpZ+Z/fltJluY2NlXQmxIUi/UgHr0oCJy53naf3W8LjUlPX+b8IogRlA== X-Received: by 10.233.239.18 with SMTP id d18mr21478411qkg.41.1465915414891; Tue, 14 Jun 2016 07:43:34 -0700 (PDT) In-Reply-To: Xref: news.gmane.org gmane.linux.lib.musl.general:10119 Archived-At: --94eb2c04b5ee934fdb05353e07b3 Content-Type: text/plain; charset=UTF-8 On Jun 5, 2016 6:47 PM, "Lei Zhang" wrote: > > Hi, > > I'm trying to make a few changes to clang/LLVM to make it work with > musl, i.e. link executables against musl instead of glibc. > > One of the changes involved is to tell clang where to find musl's > dynamic linker. My question is: is musl's dynamic linker always named > "ld-musl-$ARCH.so.1" and put under /lib? > > More specifically, on a multilib system, which of the following is encouraged? > > 1. /lib/ld-musl-{x86,x86_64}.so.1 > 2. /lib32/ld-musl-x86.so.1 and /lib64/ld-musl-x86_64.so.1 There is a llvm clang patch for this already. Look at https://github.com/kraj/meta-clang/tree/master/recipes-devtools/clang/clang > > > Thanks, > Lei --94eb2c04b5ee934fdb05353e07b3 Content-Type: text/html; charset=UTF-8


On Jun 5, 2016 6:47 PM, "Lei Zhang" <zhanglei.april@gmail.com> wrote:
>
> Hi,
>
> I'm trying to make a few changes to clang/LLVM to make it work with
> musl, i.e. link executables against musl instead of glibc.
>
> One of the changes involved is to tell clang where to find musl's
> dynamic linker. My question is: is musl's dynamic linker always named
> "ld-musl-$ARCH.so.1" and put under /lib?
>
> More specifically, on a multilib system, which of the following is encouraged?
>
> 1. /lib/ld-musl-{x86,x86_64}.so.1
> 2. /lib32/ld-musl-x86.so.1 and /lib64/ld-musl-x86_64.so.1

There is a llvm clang patch for this already. Look at

https://github.com/kraj/meta-clang/tree/master/recipes-devtools/clang/clang
>
>
> Thanks,
> Lei

--94eb2c04b5ee934fdb05353e07b3--