From patchwork Thu Feb 14 12:16:53 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steven Bosscher X-Patchwork-Id: 220430 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 36FDD2C0040 for ; Thu, 14 Feb 2013 23:17:57 +1100 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1361449078; h=Comment: DomainKey-Signature:Received:Received:Received:Received: MIME-Version:Received:From:Date:Message-ID:Subject:To: Content-Type:Mailing-List:Precedence:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:Sender:Delivered-To; bh=nHRegdS qUTECuv40bplLiHpiC6g=; b=dLRMGDw/XXaFddUYgY/9Q+KSQhQryNCjNEVBaQ5 LtBdd1AsemC/bUTz/ZNn/XP8Cfgx5t9/MBM3bTVdseHKWtTYW1/hL9AFh0ohklOp 5zLJe92uGczH4uSAPfvzMWzQvcrGTM+kZ4VhpDdXKycylfLBnMEuMi/NOmq+dk9I 3auY= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gcc.gnu.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:X-Received:MIME-Version:Received:From:Date:Message-ID:Subject:To:Content-Type:X-IsSubscribed:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=AFHDgwqRkb3TBe8ti62OPCrrcPyJPJOAg9eM8EsU7bRO9lt9q83Ip1aM9wjA0r dgalzm7qKlKxksFnbE9etQCLGuVGF2UMsv80CRNP4GzghMc+t7Tm5iEy+B4opk/R 86F+5YjnpbAHvw4Lq2kV7bi+P1pgEhtqj5a3HfiJS5+b8=; Received: (qmail 8660 invoked by alias); 14 Feb 2013 12:17:52 -0000 Received: (qmail 8643 invoked by uid 22791); 14 Feb 2013 12:17:51 -0000 X-SWARE-Spam-Status: No, hits=-4.5 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, KHOP_RCVD_TRUST, RCVD_IN_DNSWL_LOW, RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from mail-vb0-f46.google.com (HELO mail-vb0-f46.google.com) (209.85.212.46) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 14 Feb 2013 12:17:43 +0000 Received: by mail-vb0-f46.google.com with SMTP id b13so1448126vby.33 for ; Thu, 14 Feb 2013 04:17:42 -0800 (PST) X-Received: by 10.58.219.74 with SMTP id pm10mr34406928vec.1.1360844253767; Thu, 14 Feb 2013 04:17:33 -0800 (PST) MIME-Version: 1.0 Received: by 10.58.215.38 with HTTP; Thu, 14 Feb 2013 04:16:53 -0800 (PST) From: Steven Bosscher Date: Thu, 14 Feb 2013 13:16:53 +0100 Message-ID: Subject: [patch] fix build of cross-compiler to AIX To: David Edelsohn , GCC Patches X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Hello, Building a cross-compiler from powerpc-linux to powerpc-aix fails with: ../../combined/gcc/collect2.c: In function 'void scan_prog_file(const char*, scanpass, scanfilter)': ../../combined/gcc/collect2.c:2860:8: error: 'F_LOADONLY' was not declared in this scope This is due to: 2013-02-03 David Edelsohn <> Andrew Dixie <> * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY flag set. Attached patch adds the definition, taken from the AIX 7.1 Information Center (http://pic.dhe.ibm.com/infocenter/aix/v7r1/index.jsp?topic=/com.ibm.aix.files/doc/aixfiles/XCOFF.htm) OK for trunk? Ciao! Steven * collect2-aix.h: Define F_LOADONLY. Index: collect2-aix.h =================================================================== --- collect2-aix.h (revision 196048) +++ collect2-aix.h (working copy) @@ -229,7 +229,8 @@ /* Definitions required by collect2. */ #define C_EXT 2 -#define F_SHROBJ 0x2000 +#define F_SHROBJ 0x2000 +#define F_LOADONLY 0x4000 #define N_UNDEF ((short) 0) #define N_TMASK 060