From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12294 invoked by alias); 22 Aug 2011 14:07:02 -0000 Received: (qmail 12286 invoked by uid 22791); 22 Aug 2011 14:07:02 -0000 X-SWARE-Spam-Status: No, hits=-2.4 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-qw0-f47.google.com (HELO mail-qw0-f47.google.com) (209.85.216.47) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 22 Aug 2011 14:06:47 +0000 Received: by qwh5 with SMTP id 5so3193583qwh.20 for ; Mon, 22 Aug 2011 07:06:47 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.114.82 with SMTP id d18mr436758qcq.110.1314022006968; Mon, 22 Aug 2011 07:06:46 -0700 (PDT) Received: by 10.229.29.7 with HTTP; Mon, 22 Aug 2011 07:06:46 -0700 (PDT) In-Reply-To: <20110822053744.GM2687@tyan-ft48-01.lab.bos.redhat.com> References: <20110822053744.GM2687@tyan-ft48-01.lab.bos.redhat.com> Date: Mon, 22 Aug 2011 14:23:00 -0000 Message-ID: Subject: Re: PING: PATCH: PR target/46770: Use .init_array/.fini_array sections From: "H.J. Lu" To: Jakub Jelinek Cc: David Edelsohn , GCC Patches Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2011-08/txt/msg01769.txt.bz2 On Sun, Aug 21, 2011 at 10:37 PM, Jakub Jelinek wrote: > On Sun, Aug 21, 2011 at 05:09:59PM -0700, H.J. Lu wrote: >> I didn't know .init_array section was enabled for AIX. =A0Does this patch >> work for you? > > Some ELF targets (e.g. arm*-linux*) don't use elfos.h. =A0IMHO you should > instead add > #ifndef __ELF__ > #error NonELF > #endif > to gcc_AC_INITFINI_ARRAY test. =A0And/or add another test to it that tests > that you can actually use > .section .init_array > and it will use correct section flags for the section. > I will update the test. --=20 H.J.