From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28595 invoked by alias); 8 Feb 2012 01:56:21 -0000 Received: (qmail 28415 invoked by uid 22791); 8 Feb 2012 01:56:19 -0000 X-SWARE-Spam-Status: No, hits=-1.5 required=5.0 tests=AWL,BAYES_00,FROM_12LTRDOM,SUBJ_OBFU_PUNCT_FEW X-Spam-Check-By: sourceware.org Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 08 Feb 2012 01:56:07 +0000 Received: from nat-ies.mentorg.com ([192.94.31.2] helo=EU1-MAIL.mgc.mentorg.com) by relay1.mentorg.com with esmtp id 1RuwlS-00002Z-FX from joseph_myers@mentor.com ; Tue, 07 Feb 2012 17:56:06 -0800 Received: from digraph.polyomino.org.uk ([172.16.63.104]) by EU1-MAIL.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.1830); Wed, 8 Feb 2012 01:56:04 +0000 Received: from jsm28 (helo=localhost) by digraph.polyomino.org.uk with local-esmtp (Exim 4.74) (envelope-from ) id 1RuwlP-0000Ny-Lh; Wed, 08 Feb 2012 01:56:03 +0000 Date: Wed, 08 Feb 2012 01:56:00 -0000 From: "Joseph S. Myers" To: libc-alpha@sourceware.org, libc-ports@sourceware.org Subject: Arch maintainers: new approach for crti.o and crtn.o Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Mailing-List: contact libc-ports-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: libc-ports-owner@sourceware.org X-SW-Source: 2012-02/txt/msg00005.txt.bz2 glibc now supports building crti.o and crtn.o (both the csu/ versions and the nptl/ versions) from .S files, instead of the very fragile approach (which kept breaking with GCC changes) of postprocessing .s output from initfini.c and pt-initfini.c to separate function prologues and epilogues into separate files. I have converted i386 to the new scheme so it serves as an example. The maintainers of each other architecture should convert it; the crt[in].S files generated in csu/ and nptl/ in the object directory from a glibc build may serve as a starting point to clean up and check in. (You will of course want the checked-in files to work on all supported variants of your architecture, not just the one for which your compiler was configured when building initfini.c and pt-initfini.c. Some architectures have CFLAGS settings forcing particular CPU options when building those C files, others do not. In any case, after the conversion for a particular architecture, any special makefile settings for the old approach with that architecture can be removed, as can any architecture-specific versions of initfini.c and pt-initfini.c.) The deadline for the conversion, after which the transitional support for the old mechanism is expected to be removed, is 1 April (it may be removed before then if all libc architectures are converted sooner). -- Joseph S. Myers joseph@codesourcery.com