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.6 required=5.0 tests=AWL,BAYES_00, DNS_FROM_OPENWHOIS autolearn=no version=3.2.5 MIME-Version: 1.0 In-Reply-To: <20100322135804.GD12770@altlinux.org> References: <921f6bb41003210319v398e11ceq830f342a05e77c8b@mail.gmail.com> <20100321131440.GA1931@wo.int.altlinux.org> <20100321145113.GD30094@altlinux.org> <20100321153442.GA21854@wo.int.altlinux.org> <20100321191834.GE30094@altlinux.org> <20100322081149.GA12770@altlinux.org> <20100322135804.GD12770@altlinux.org> Date: Mon, 22 Mar 2010 17:41:07 +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: Mon, 22 Mar 2010 15:41:14 -0000 Archived-At: List-Archive: List-Post: 2010/3/22 Alexey Tourbin : > On Mon, Mar 22, 2010 at 01:00:46PM +0200, Kirill A. Shutemov wrote: >> >> gold(1) behaves that way by default. AFAIK, Fedora goes to switch to = it later. >> >> So it's one of step of switching. >> > >> > So a good reason to change the default is because of Fedora. =C2=A0Bec= ause >> > they are going to change it, too! =C2=A0Just not yet. =C2=A0Maybe next= week. >> >> Alexey, what will we do when Fedora and other major distributions >> switch to gold(1)? > > Do they? =C2=A0https://fedoraproject.org/wiki/GoldLinking - > "may make it default linker in the future", with no schedule. Do you think they rebuild packages with gold just for fun? ;) >> We have three options: >> >> 1. Switch to gold too and fix all regressions in repository including >> indirect linking issues. >> >> 2. Switch to gold, but add functionality for --copy-dt-needed-entries >> which, probably, will never be upstreamed. > > Quite an option. > http://sources.redhat.com/bugzilla/show_bug.cgi?id=3D10238 > >> 3. Do not switch to gold and use semi-supported gnu-ld. >> >> > But as far as I know, Fedora did never enable --as-needed by default. >> > This makes a difference. > > By the way, I'm not sure if gold(1) can do the --as-needed thing. > Probably we need to implement it, too. Yes, it can. It's default behavior. And it's not necessary to specify libraries you want to link with at the end of command line.