From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6809 invoked by alias); 31 Jan 2012 07:14:26 -0000 Received: (qmail 6788 invoked by uid 22791); 31 Jan 2012 07:14:24 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from mail-gy0-f169.google.com (HELO mail-gy0-f169.google.com) (209.85.160.169) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 31 Jan 2012 07:14:11 +0000 Received: by ghrr18 with SMTP id r18so176421ghr.0 for ; Mon, 30 Jan 2012 23:14:10 -0800 (PST) Received: by 10.236.141.37 with SMTP id f25mr32482719yhj.3.1327994050808; Mon, 30 Jan 2012 23:14:10 -0800 (PST) Received: from bubble.grove.modra.org ([115.187.252.19]) by mx.google.com with ESMTPS id a14sm53366518ana.20.2012.01.30.23.14.08 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 30 Jan 2012 23:14:10 -0800 (PST) Received: by bubble.grove.modra.org (Postfix, from userid 1000) id CB10D170C2EA; Tue, 31 Jan 2012 17:44:02 +1030 (CST) Date: Tue, 31 Jan 2012 07:14:00 -0000 From: Alan Modra To: "H.J. Lu" Cc: binutils@sourceware.org Subject: Re: PATCH: PR ld/13616: linker should pad executable sections with nops, not zeros Message-ID: <20120131071402.GD12169@bubble.grove.modra.org> Mail-Followup-To: "H.J. Lu" , binutils@sourceware.org References: <20120126193540.GA4071@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20120126193540.GA4071@intel.com> User-Agent: Mutt/1.5.20 (2009-06-14) 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: 2012-01/txt/msg00282.txt.bz2 On Thu, Jan 26, 2012 at 11:35:40AM -0800, H.J. Lu wrote: > Linker pads text sections with nop via linker script. It doesn't work > on orphaned sections. This patch adds a fill function to bfd_arch_info > so that each arch can provide appropriate no-op sequence based on size > and endian. I added x86 fill function and the default fill function > keeps existing behavior. I also changed the x86 ELF linkers to use x86 > fill function instead of fixed no-op. OK to install? OK. Bump bfd version to 2.22.52 (bfd/configure.in:AM_INIT_AUTOMAKE). -- Alan Modra Australia Development Lab, IBM