From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id 25FD93858D28 for ; Sat, 4 Dec 2021 19:12:45 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 25FD93858D28 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-185-u-a3DvYQNVOnW_MdVsOWlQ-1; Sat, 04 Dec 2021 14:12:41 -0500 X-MC-Unique: u-a3DvYQNVOnW_MdVsOWlQ-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 019071023F4D for ; Sat, 4 Dec 2021 19:12:41 +0000 (UTC) Received: from oldenburg.str.redhat.com (unknown [10.39.193.123]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 4154F60BE5 for ; Sat, 4 Dec 2021 19:12:40 +0000 (UTC) From: Florian Weimer To: Florian Weimer via Libc-alpha Subject: Re: [PATCH v2] elf: Install a symbolic link to ld.so as /usr/bin/ld.so References: <87a6i5fd9t.fsf@oldenburg.str.redhat.com> Date: Sat, 04 Dec 2021 20:12:38 +0100 In-Reply-To: <87a6i5fd9t.fsf@oldenburg.str.redhat.com> (Florian Weimer via Libc-alpha's message of "Mon, 15 Nov 2021 20:07:58 +0100") Message-ID: <87lf10tc9l.fsf@oldenburg.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain X-Spam-Status: No, score=-12.6 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Dec 2021 19:12:47 -0000 * Florian Weimer via Libc-alpha: > This makes ld.so features such as --preload, --audit, > and --list-diagnostics more accessible to end users because they > do not need to know the ABI name of the dynamic loader. > > --- > v2: Use $(make-link). > NEWS | 4 ++++ > elf/Makefile | 7 ++++++- > 2 files changed, 10 insertions(+), 1 deletion(-) > > diff --git a/NEWS b/NEWS > index f10971b180..2f56f3db28 100644 > --- a/NEWS > +++ b/NEWS > @@ -68,6 +68,10 @@ Major new features: > to be used by compilers for optimizing usage of 'memcmp' when its > return value is only used for its boolean status. > > +* A symbolic link to the dynamic linker is now installed under > + /usr/bin/ld.so (or ${bindir}/ld.so if glibc is not configured with > + --prefix=/usr). Some distribution discussions on this patch: /usr/bin/ld.so as a symbolic link for the dynamic loader (thread wasn't Cc:ed to both lists throughout) Based on the Debian feedback, I've fixed launching of statically linked executables: [PATCH] elf: execve statically linked programs instead of crashing [BZ #28648] Thanks, Florian