From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on sa.int.altlinux.org X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,DNS_FROM_OPENWHOIS autolearn=no version=3.2.5 MIME-Version: 1.0 In-Reply-To: <20100324182851.GK21538@wo.int.altlinux.org> References: <20100321101137.GE12359@wrars-comp.wrarsdomain> <921f6bb41003210319v398e11ceq830f342a05e77c8b@mail.gmail.com> <20100321131440.GA1931@wo.int.altlinux.org> <20100321145113.GD30094@altlinux.org> <20100321153442.GA21854@wo.int.altlinux.org> <20100324181537.GJ21538@wo.int.altlinux.org> <20100324182851.GK21538@wo.int.altlinux.org> Date: Wed, 24 Mar 2010 20:40:51 +0200 Message-ID: From: "Kirill A. Shutemov" To: ALT Linux Team development discussions Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [devel] Q: --no-copy-dt-needed-entries X-BeenThere: devel@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: ALT Linux Team development discussions List-Id: ALT Linux Team development discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Mar 2010 18:40:57 -0000 Archived-At: List-Archive: List-Post: 2010/3/24 Dmitry V. Levin : > On Wed, Mar 24, 2010 at 08:24:32PM +0200, Kirill A. Shutemov wrote: >> 2010/3/24 Dmitry V. Levin : >> > On Sun, Mar 21, 2010 at 06:34:43PM +0300, Dmitry V. Levin wrote: >> >> On Sun, Mar 21, 2010 at 05:51:13PM +0300, Alexey Tourbin wrote: >> > [...] >> >> > So, contrary to the initial message, with --as-needed on, there see= ms >> >> > to be NO REASON to enable --no-copy-dt-needed-entries by default. >> >> >> >> Just the opposite, there is a reason to link ELF executables with all >> >> libraries they use directly. =C2=A0Applications should be neither ove= rlinked >> >> nor underlinked. =C2=A0The first problem is solved by --as-needed, th= e second >> >> issue will be fixed by enabling --no-copy-dt-needed-entries by defaul= t. >> > >> > I was wrong, --copy-dt-needed-entries does not produce underlinked app= s, >> > so I withdraw my proposal to change the default from --copy-dt-needed-= entries >> > to --no-copy-dt-needed-entries. >> >> Dmitry, what do you think about gold? What will we do if Fedora >> switches to gold. If we want to switch to gold too, we have to prepare >> for it. --no-copy-dt-needed-entries is one of step of the preparing. > > I haven't tried gold yet. I'll package it with alternatives in the next build of binutils. > =C2=A0If it doesn't implement > --copy-dt-needed-entries, we could request this feature or just implement > it ourselves. Have you looked into bug pointed by Alexey? In fact, --copy-dt-needed-entries is a reimplementation part of dynamic loader functional. Looks like workaround for buggy software. I don't think that bring it to new linker is a good idea.