From patchwork Thu Dec 6 05:36:36 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Zankel X-Patchwork-Id: 204132 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ozlabs.org (Postfix) with ESMTP id 4490D2C00A8 for ; Thu, 6 Dec 2012 16:50:14 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 319EA8C1F7; Thu, 6 Dec 2012 05:50:12 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 1L40uunfY4dh; Thu, 6 Dec 2012 05:50:10 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id DC8878C197; Thu, 6 Dec 2012 05:50:09 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 95B328F74A for ; Thu, 6 Dec 2012 05:50:13 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 4D43B8C1E7 for ; Thu, 6 Dec 2012 05:50:08 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id hd-ibz0hnEIa for ; Thu, 6 Dec 2012 05:50:06 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pb0-f43.google.com (mail-pb0-f43.google.com [209.85.160.43]) by whitealder.osuosl.org (Postfix) with ESMTPS id F1ADA8C1DB for ; Thu, 6 Dec 2012 05:50:05 +0000 (UTC) Received: by mail-pb0-f43.google.com with SMTP id um15so5249217pbc.16 for ; Wed, 05 Dec 2012 21:50:05 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:from:to:date:subject:x-gm-message-state; bh=khAyu2pw7Ocs8tGemw0Cplpa6WyFZA1wIGrtTP6GzVc=; b=pXuFllOIsu8GHhLEAztDTYsGdxKjdwgoYjoaz0ldndyN+6ZpSWh6iZVELRn+6OkrZy WDTGZoHJ0MA8ptGBcH5CNdryevgw8x42owU4X/Ts6QKmqBDbNWY6RuQwzuJBWRzvZI93 NwhL7+S5bBZpyIH61740+ZHYBwxIp1/Dc0DEjXsK8zk6VZT7XqKVtp4UjmxBV+SpIIeZ QGyzGBaPIy+09cHnnUueply0rHbnkBQRmm+BPdvNL7+h/7QHc7NbjAY2TqIPibq19eyw N4+AbpyVJH77fk51Fz/XRpE+p+gp1LIBCa33udNq7rpl0BMbRKnB524/MgCOo40SK4Gp n4OA== Received: by 10.66.73.132 with SMTP id l4mr1283997pav.48.1354773005865; Wed, 05 Dec 2012 21:50:05 -0800 (PST) Received: from localhost (c-67-161-9-61.hsd1.ca.comcast.net. [67.161.9.61]) by mx.google.com with ESMTPS id gu5sm4183827pbc.10.2012.12.05.21.50.03 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 05 Dec 2012 21:50:04 -0800 (PST) Message-ID: <50c0320c.05bf440a.60fe.60b5@mx.google.com> Received: by localhost (sSMTP sendmail emulation); Wed, 05 Dec 2012 21:50:02 -0800 From: Chris Zankel To: buildroot@busybox.net Date: Wed, 5 Dec 2012 21:36:36 -0800 X-Gm-Message-State: ALoCoQnbTzQH1WQA5sWT9SsvX7LwpyWmMyfHHoCknuMiB++7LHyiAHDs7JHzwz2HpjVnb2RMXA5T Subject: [Buildroot] [PATCH] xtensa: add -mlongcalls to CFLAGS for xtensa X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net The longcalls option allows calls across a greater range of addresses. This option may degrade both code size and performance, but the linker can generally optimize away the unnecessary overhead when a call ends up within range Signed-off-by: Chris Zankel --- package/Makefile.in | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/package/Makefile.in b/package/Makefile.in index 9fdc745..98e7f7c 100644 --- a/package/Makefile.in +++ b/package/Makefile.in @@ -56,6 +56,15 @@ TARGET_ABI+=-mabi=spe -mfloat-gprs=double -Wa,-me500mc endif endif +# Use longcalls option for Xtensa globally. +# The 'longcalls' option allows calls across a greater range of addresses, +# and is required for some packages. While this option can degrade both +# code size and performance, the linker can usually optimize away the +# overhead when a call ends up within a certain range. +ifeq ($(BR2_xtensa),y) +TARGET_ABI += -mlongcalls +endif + STAGING_DIR=$(HOST_DIR)/usr/$(GNU_TARGET_NAME)/sysroot TARGET_OPTIMIZATION:=$(call qstrip,$(BR2_TARGET_OPTIMIZATION))