From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22440 invoked by alias); 11 Dec 2002 00:56:24 -0000 Mailing-List: contact libc-hacker-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-hacker-owner@sources.redhat.com Received: (qmail 22420 invoked from network); 11 Dec 2002 00:56:24 -0000 Received: from unknown (HELO rwcrmhc52.attbi.com) (216.148.227.88) by sources.redhat.com with SMTP; 11 Dec 2002 00:56:24 -0000 Received: from lucon.org (12-234-88-146.client.attbi.com[12.234.88.146]) by rwcrmhc52.attbi.com (rwcrmhc52) with ESMTP id <20021211005623052001rr5pe>; Wed, 11 Dec 2002 00:56:23 +0000 Received: by lucon.org (Postfix, from userid 1000) id 287F12C698; Tue, 10 Dec 2002 16:56:23 -0800 (PST) Date: Tue, 10 Dec 2002 16:56:00 -0000 From: "H. J. Lu" To: Roland McGrath Cc: Ulrich Drepper , Jakub Jelinek , Glibc hackers Subject: Re: [PATCH] Fix tst-array* on x86_64 Message-ID: <20021210165623.A5106@lucon.org> References: <20021210154427.A4165@lucon.org> <200212110035.gBB0Zs029801@magilla.sf.frob.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <200212110035.gBB0Zs029801@magilla.sf.frob.com>; from roland@redhat.com on Tue, Dec 10, 2002 at 04:35:54PM -0800 X-SW-Source: 2002-12/txt/msg00027.txt.bz2 On Tue, Dec 10, 2002 at 04:35:54PM -0800, Roland McGrath wrote: > I already read the linker script of course. I don't see how that explains > it. The ALIGN is done before the symbol or the section. Ah, but you are > saying that the section will have sh_addralign of 16 and that will skip the > word after the symbol and before the section. Of course, you didn't say > that so I can only assume that having me just get lucky and guess what you > meant was your way of being helpful. The linker script shows that __preinit_array_start is aligned by ALIGN(${ALIGNMENT}). It doesn't matter what alignment .preinit_array uses. A target has to make sure all __*_array_start are aligned properly. The current elf.sc assumes ALIGN(${ALIGNMENT}) will align all __*_array_start correctly. It seems to work for ia32 and ia64. H.J.