From patchwork Thu May 9 09:35:33 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 242738 X-Patchwork-Delegate: albert.aribaud@free.fr Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 3440F2C00DC for ; Thu, 9 May 2013 19:36:00 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 39BBE4A135; Thu, 9 May 2013 11:35:58 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pI9NWU00YjbP; Thu, 9 May 2013 11:35:58 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id DA5DF4A138; Thu, 9 May 2013 11:35:52 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 338C24A138 for ; Thu, 9 May 2013 11:35:50 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id cnaBeaRAf1Wl for ; Thu, 9 May 2013 11:35:44 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-ee0-f44.google.com (mail-ee0-f44.google.com [74.125.83.44]) by theia.denx.de (Postfix) with ESMTPS id BA4C24A135 for ; Thu, 9 May 2013 11:35:39 +0200 (CEST) Received: by mail-ee0-f44.google.com with SMTP id t10so1458541eei.17 for ; Thu, 09 May 2013 02:35:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:sender:from:to:cc:subject:date:message-id:x-mailer :content-type:x-gm-message-state; bh=qp1PDCSeVsqnUCoVuBGjaKmMl7GLBE28dQNP3q4b9/8=; b=p0NAT4oX7pzVzUdbolcSf8EVmQ9PQgp6XFVxFj3kOXNB4uLe2fBMLmCSRCvQ912OJF 3y9uML1VQUAE+lpumJM2zXt4an/7ZPCW7vt9VCp3WAgi6LzDWN0CZLyB9mxOoZd3eGwR DXfAEBGn2dIIWX4OVDmONk2L1YJMb220WrS6dDMuf2m3wzEVvFihfyHVUs6yFOCd5yPg jo9wIpDxx1U+41imrP5b2eo2rUil5xwoBp0hAheasAgQsYuqat5dFMeYRyEuWFPA97N+ r7vG3Obney81N3KapjAaITj1j7ztjF4tgGlnxxY5E43W57JzfiLaZqo9czS51D9vlqBq nHoQ== X-Received: by 10.14.99.198 with SMTP id x46mr27017395eef.38.1368092138944; Thu, 09 May 2013 02:35:38 -0700 (PDT) Received: from localhost (nat-63.starnet.cz. [178.255.168.63]) by mx.google.com with ESMTPSA id t9sm2958773eeo.11.2013.05.09.02.35.38 for (version=TLSv1.1 cipher=RC4-SHA bits=128/128); Thu, 09 May 2013 02:35:38 -0700 (PDT) From: Michal Simek To: u-boot@lists.denx.de, Albert Aribaud , Tom Rini Date: Thu, 9 May 2013 11:35:33 +0200 Message-Id: <40cc0ff325a279f7fe2a51e5a91aa24adcbad373.1368092129.git.michal.simek@xilinx.com> X-Mailer: git-send-email 1.8.2.1 X-Gm-Message-State: ALoCoQlgK7FzRbq0yznxO1px3Z1sBaRQ4FJYYoDwxiR4lTgKWpgCK2/PmwmY4RQ+w1WEoAEtYqaK Cc: "Edgar E. Iglesias" , Peter Crosthwaite , Jagannadha Sutradharudu Teki Subject: [U-Boot] [RFC PATCH] arm: lds: Remove libgcc eabi exception handling tables X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de Remove ARM eabi exception handling tables (for frame unwinding). AFAICT, u-boot stubs away the frame unwiding routines, so the tables will more or less just consume space. It should be OK to remove them. Signed-off-by: Edgar E. Iglesias Signed-off-by: Michal Simek --- Other options could be to complete u-boot/arch/arm/lib/* so that libgcc routines with exception handling dont get pulled in. Or to avoid user code (like the mentioned patch) which causes external libgcc functions to get pulled in... --- arch/arm/cpu/u-boot.lds | 2 ++ 1 file changed, 2 insertions(+) -- 1.8.2.1 diff --git a/arch/arm/cpu/u-boot.lds b/arch/arm/cpu/u-boot.lds index d9bbee3..e139b90 100644 --- a/arch/arm/cpu/u-boot.lds +++ b/arch/arm/cpu/u-boot.lds @@ -106,4 +106,6 @@ SECTIONS /DISCARD/ : { *(.plt*) } /DISCARD/ : { *(.interp*) } /DISCARD/ : { *(.gnu*) } + /DISCARD/ : { *(.ARM.exidx*) } + /DISCARD/ : { *(.gnu.linkonce.armexidx.*) } }