From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22136 invoked by alias); 10 Dec 2002 23:25:40 -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 22120 invoked from network); 10 Dec 2002 23:25:39 -0000 Received: from unknown (HELO gateway.sf.frob.com) (64.160.54.233) by sources.redhat.com with SMTP; 10 Dec 2002 23:25:39 -0000 Received: from magilla.sf.frob.com (magilla.sf.frob.com [198.49.250.228]) by gateway.sf.frob.com (Postfix) with ESMTP id 7C9FB36DE; Tue, 10 Dec 2002 15:25:38 -0800 (PST) Received: (from roland@localhost) by magilla.sf.frob.com (8.11.6/8.11.6) id gBANPcs29501; Tue, 10 Dec 2002 15:25:38 -0800 Date: Tue, 10 Dec 2002 15:25:00 -0000 Message-Id: <200212102325.gBANPcs29501@magilla.sf.frob.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: Roland McGrath To: Ulrich Drepper Cc: Jakub Jelinek , Glibc hackers Subject: Re: [PATCH] Fix tst-array* on x86_64 In-Reply-To: Ulrich Drepper's message of Tuesday, 10 December 2002 10:47:21 -0800 <3DF636B9.8070802@redhat.com> X-Antipastobozoticataclysm: Bariumenemanilow X-SW-Source: 2002-12/txt/msg00023.txt.bz2 > Why are the labels around wrong? I would imagine that padding is added > and that if two .preinit_array sections have to be concatenated there is > garbage between them. But still, the lables should be rights. This padding is added by the compiler, inside the section. The labels are created by the linker. i.e.: .globl preinit_array .section .preinit_array,"a",@progbits .align 16 .type preinit_array, @object .size preinit_array, 24 preinit_array: .quad ... This doesn't explain exactly what I saw, which was the linker symbols and the sections not starting at the same address. But even if they matched, the leading or trailing zeros bite.