Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752358AbbBWM3A (ORCPT ); Mon, 23 Feb 2015 07:29:00 -0500 Received: from mail-wg0-f48.google.com ([74.125.82.48]:63634 "EHLO mail-wg0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752143AbbBWM27 (ORCPT ); Mon, 23 Feb 2015 07:28:59 -0500 MIME-Version: 1.0 Date: Mon, 23 Feb 2015 20:28:57 +0800 Message-ID: Subject: some question about aarch32 for ARM64 From: loody To: LKML , catalin.marinas@arm.com Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1150 Lines: 34 hi all: I follow below instructions to compile a simple c file as aarch32 but in vain. https://gcc.gnu.org/onlinedocs/gcc-4.9.1/gcc/AArch64-Options.html#AArch64-Options And I download the toolchain from http://www.linaro.org/downloads/ (linaro-toolchain-binaries 4.9 (Aarch64 little-endian)) I saw there are aarch32 support in arm64 kernel porting. Would you mind to let us know how to get aarch32 ELF for running on ARM64 processors? Sincerely appreciate your kind help in advance, PS:Below is my compile error message: #aarch64-linux-gnu-gcc -mabi=ilp32 test.c /media/sdb2/toolchain/arm/gcc- linaro-aarch64-linux-gnu-4.9-2014.09_linux/bin/../lib/gcc/aarch64-linux-gnu/4.9.2/../../../../aarch64-linux-gnu/bin/ld: skipping incompatible /media/sdb2/toolchain/arm/gcc-linaro-aarch64-linux-gnu-4.9-2014.09_linux/bin/../lib/gcc/aarch64-linux-gnu/4.9.2/libgcc.a when searching for -lgcc -- Regards, -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/