From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27767 invoked by alias); 22 Aug 2011 00:10:18 -0000 Received: (qmail 27759 invoked by uid 22791); 22 Aug 2011 00:10:16 -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-qy0-f175.google.com (HELO mail-qy0-f175.google.com) (209.85.216.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 22 Aug 2011 00:10:00 +0000 Received: by qyk4 with SMTP id 4so1071940qyk.20 for ; Sun, 21 Aug 2011 17:09:59 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.189.149 with SMTP id de21mr977273qcb.72.1313971799731; Sun, 21 Aug 2011 17:09:59 -0700 (PDT) Received: by 10.229.29.7 with HTTP; Sun, 21 Aug 2011 17:09:59 -0700 (PDT) In-Reply-To: References: Date: Mon, 22 Aug 2011 07:44:00 -0000 Message-ID: Subject: Re: PING: PATCH: PR target/46770: Use .init_array/.fini_array sections From: "H.J. Lu" To: David Edelsohn Cc: Jakub Jelinek , GCC Patches Content-Type: multipart/mixed; boundary=0016361e7dea5e303104ab0ce6f2 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/msg01713.txt.bz2 --0016361e7dea5e303104ab0ce6f2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-length: 707 On Sun, Aug 21, 2011 at 4:19 PM, David Edelsohn wrote: > This patch broke bootstrap on AIX. =A0It emits a ".section" op in > assembly but ".section" is an ELF syntax op not AIX XCOFF. > > FE..initialize_critical: > =A0 =A0 =A0 =A0.section =A0 =A0 =A0 =A0.init_array > > varasm.c should not be generating ELF ops for non-ELF targets. > > config.log shows: > > gcc_cv_initfini_array=3Dyes > tm_file_list includes initfini-array.h > tm_include_list includes initfini-array.h > > Why is the patch affecting non-ELF targets? =A0Please fix or revert immed= iately. > I didn't know .init_array section was enabled for AIX. Does this patch work for you? Sorry about the breakage. --=20 H.J. --0016361e7dea5e303104ab0ce6f2 Content-Type: text/plain; charset=US-ASCII; name="gcc-elfos-1.patch" Content-Disposition: attachment; filename="gcc-elfos-1.patch" Content-Transfer-Encoding: base64 X-Attachment-Id: f_grmot3so0 Content-length: 700 ZGlmZiAtLWdpdCBhL2djYy9jb25maWcuZ2NjIGIvZ2NjL2NvbmZpZy5nY2MK aW5kZXggN2YyOTIxMy4uODQzYjM4MiAxMDA2NDQKLS0tIGEvZ2NjL2NvbmZp Zy5nY2MKKysrIGIvZ2NjL2NvbmZpZy5nY2MKQEAgLTMwNTgsOSArMzA1OCwx MyBAQCBpZiB0ZXN0IHgkd2l0aF9zY2hlZHVsZSA9IHg7IHRoZW4KIAllc2Fj CiBmaQogCi0jIFN1cHBvcnQgLS1lbmFibGUtaW5pdGZpbmktYXJyYXkuCisj IFN1cHBvcnQgLS1lbmFibGUtaW5pdGZpbmktYXJyYXkgZm9yIEVMRiBPU2Vz LgogaWYgdGVzdCB4JGVuYWJsZV9pbml0ZmluaV9hcnJheSA9IHh5ZXM7IHRo ZW4KLSAgdG1fZmlsZT0iJHt0bV9maWxlfSBpbml0ZmluaS1hcnJheS5oIgor CWNhc2UgIiR7dG1fZmlsZX0iIGluCisJKmVsZm9zLmgqKQorCQl0bV9maWxl PSIke3RtX2ZpbGV9IGluaXRmaW5pLWFycmF5LmgiCisJCTs7CisgIAllc2Fj CiBmaQogCiAjIFZhbGlkYXRlIGFuZCBtYXJrIGFzIHZhbGlkIGFueSAtLXdp dGggb3B0aW9ucyBzdXBwb3J0ZWQK --0016361e7dea5e303104ab0ce6f2--