From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30444 invoked by alias); 27 Feb 2011 19:11:49 -0000 Received: (qmail 30436 invoked by uid 22791); 27 Feb 2011 19:11:49 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from dm-mail02.mozilla.org (HELO dm-mail02.mozilla.org) (63.245.208.176) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 27 Feb 2011 19:11:43 +0000 Received: from desktop.lan (v74-nslb.mozilla.org [10.2.74.4]) (Authenticated sender: respindola@mozilla.com) by dm-mail02.mozilla.org (Postfix) with ESMTP id 193B9824152; Sun, 27 Feb 2011 11:11:40 -0800 (PST) Message-ID: <4D6AA1E3.8040000@mozilla.com> Date: Sun, 27 Feb 2011 19:11:00 -0000 From: =?UTF-8?B?UmFmYWVsIMOBdmlsYSBkZSBFc3DDrW5kb2xh?= User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc14 Thunderbird/3.1.7 MIME-Version: 1.0 To: Ian Lance Taylor CC: binutils@sourceware.org Subject: Re: [5/6][PATCH] Perform second link stage and ignore now-obsolete linker -pass-through= option. References: <4D684CB8.6020106@gmail.com> <4D684D00.70803@gmail.com> <4D684D69.7060907@gmail.com> <4D687B6C.1030301@mozilla.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org X-SW-Source: 2011-02/txt/msg00380.txt.bz2 > What is the actual difference in behaviour? The main one is the requirement for -pass-through=. A quick summary of the possible ways of handling mixed IL/ELF files when given a sequence like ELF IL IL ELF IL IL ELF is 1) Combine every contiguous IL file sequence (ELF COMBINED_ELF1 ELF COMBINED_ELF2 ELF) and conceptually restart the link. This would provide the least differences when compared to an all ELF link. 2) Combine every IL file into a single ELF, put it in the place of the first IL file (ELF COMBINED_ELF ELF ELF) and conceptually restart the link. If I understand it correctly, this is where the bfd ld is going. 3) Same as before, but put the combined elf file in the end. 4) Same as before, but do not restart the link. This is what gold does currently and requires the -pass-through option. > I am going to continue to argue strenuously against rescanning all the > symbol tables of the input files in gold. If GNU ld wants to rescan all > the symbol tables, I suppose that's OK with me, as long as gold is not > required to do it. Can you think of a way that we can drop just the requirement of the -pass-through option? Handling the strange case of user defined versions of libgcc functions doesn't look as important. > Ian Cheers, Rafael