From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27284 invoked by alias); 9 Aug 2012 17:24:09 -0000 Received: (qmail 27275 invoked by uid 22791); 9 Aug 2012 17:24:07 -0000 X-SWARE-Spam-Status: No, hits=-4.3 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00,KHOP_THREADED X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 09 Aug 2012 17:23:54 +0000 From: "chaoyingfu at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/54209] [4.8 Regression] Failed to build gcc for Android/x86 Date: Thu, 09 Aug 2012 17:24:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: chaoyingfu at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.8.0 X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2012-08/txt/msg00502.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54209 --- Comment #2 from chaoyingfu at gcc dot gnu.org 2012-08-09 17:23:40 UTC --- MIPS provides a version of link.h in Android NDK as follows: Ex: >>From android-ndk-r8b/platforms/android-9/arch-mips/usr/include# cat link.h /* For building unwind-dw2-fde-glibc.c for MIPS frame unwinding, we need to have that defines struct dl_phdr_info, ELFW(type), and dl_iterate_phdr(). */ #include #include struct dl_phdr_info { Elf32_Addr dlpi_addr; const char *dlpi_name; const Elf32_Phdr *dlpi_phdr; Elf32_Half dlpi_phnum; }; #if _MIPS_SZPTR == 32 #define ElfW(type) Elf32_##type #elif _MIPS_SZPTR == 64 #define ElfW(type) Elf64_##type #endif int dl_iterate_phdr(int (*cb)(struct dl_phdr_info *info, size_t size, void *data), void *data); For x86, you can create link.h as well. Or we can guard this define with MIPS targets. Ex: #if !defined(inhibit_libc) && defined(HAVE_LD_EH_FRAME_HDR) \ && defined(__BIONIC__) && defined(__mips__) # define USE_PT_GNU_EH_FRAME #endif Thanks!