From patchwork Wed Mar 6 00:39:38 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 225205 X-Patchwork-Delegate: trini@ti.com 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 93EA72C0371 for ; Wed, 6 Mar 2013 11:41:33 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id AC1F84A222; Wed, 6 Mar 2013 01:41:31 +0100 (CET) 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 KrYF3txYCwnS; Wed, 6 Mar 2013 01:41:30 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id A1DFA4A1E9; Wed, 6 Mar 2013 01:41:06 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id AD6A94A1DD for ; Wed, 6 Mar 2013 01:41:03 +0100 (CET) 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 G1I+hYBl--0C for ; Wed, 6 Mar 2013 01:41:02 +0100 (CET) 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-vc0-f201.google.com (mail-vc0-f201.google.com [209.85.220.201]) by theia.denx.de (Postfix) with ESMTPS id 8BD574A1C9 for ; Wed, 6 Mar 2013 01:41:00 +0100 (CET) Received: by mail-vc0-f201.google.com with SMTP id n11so806944vch.0 for ; Tue, 05 Mar 2013 16:40:59 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references:x-gm-message-state; bh=jup1frUlO5UER2Kbxw4fUCOjAhb69W8L6nqqGk4uruE=; b=UN4mL2d7tX2vfTFo92gBBQhFm/zgBqprtK+a7pXivlVWx4fgrJNkF53FIq3FEM79+7 ojMhHtsWkqaz1ZpXvINHgX03Lg8rLbXRevsin2JGleWRTHaxRL6kmSLy+JG1aCcyC52s TzrNXTBB3P6G+IZuIfyHIpbfID/pnkESXPtdojSryEuV/Sak3toICxCp4MReY3PpEWKr GuIYHiopEds4wPjdx9H7Ygyo2NwrDHW1jLxj6kvc2NfDeWLA+Sl+NDg3VYIMPw5TawRS 8huP9IOTAbLP3WRKU3e9XCX9RzeEr8gcAkrt1Zye1zKA36rlhTlvXXz0oYmLSBR2Lijy Fvvg== X-Received: by 10.236.204.72 with SMTP id g48mr15841684yho.32.1362530459405; Tue, 05 Mar 2013 16:40:59 -0800 (PST) Received: from corp2gmr1-2.hot.corp.google.com (corp2gmr1-2.hot.corp.google.com [172.24.189.93]) by gmr-mx.google.com with ESMTPS id h26si445175yhf.3.2013.03.05.16.40.59 (version=TLSv1.1 cipher=AES128-SHA bits=128/128); Tue, 05 Mar 2013 16:40:59 -0800 (PST) Received: from kaka.mtv.corp.google.com (kaka.mtv.corp.google.com [172.22.73.79]) by corp2gmr1-2.hot.corp.google.com (Postfix) with ESMTP id 359155A4253; Tue, 5 Mar 2013 16:40:59 -0800 (PST) Received: by kaka.mtv.corp.google.com (Postfix, from userid 121222) id C476F160BCE; Tue, 5 Mar 2013 16:40:58 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Date: Tue, 5 Mar 2013 16:39:38 -0800 Message-Id: <1362530405-10824-5-git-send-email-sjg@chromium.org> X-Mailer: git-send-email 1.8.1.3 In-Reply-To: <1362530405-10824-1-git-send-email-sjg@chromium.org> References: <1362530405-10824-1-git-send-email-sjg@chromium.org> X-Gm-Message-State: ALoCoQl2FACSPjHq3CZS/s2Ti3kfvl2z9cTSV6rprEAAYNNWwsN+qXvINoALDzjCDkj0+12jcf7IfemVEBj1U3tVobE8H4N0QDPqH9csDvS66glxE7GHsmnNkmUMf/LAjLXJEkdsOB1sAoA99hGb8mvQVNeI3vXoM1r2rTqYMfzDqULreIYQbzREmmSeIX6KOLnkqSJ+yZp0 Cc: Graeme Russ , Tom Rini , Vadim Bendebury Subject: [U-Boot] [PATCH v6 04/31] arm: Use sections header to obtain link symbols 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 Include this header to get access to link symbols, which are otherwise removed. Signed-off-by: Simon Glass --- Changes in v6: None Changes in v5: - Remove avr32 changes from what should be an arm patch Changes in v4: - Use asm/sections.h instead of asm-generic/sections.h Changes in v3: None Changes in v2: None arch/arm/include/asm/u-boot-arm.h | 4 ---- arch/arm/lib/board.c | 1 + board/cm4008/flash.c | 1 + board/cm41xx/flash.c | 1 + 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/arch/arm/include/asm/u-boot-arm.h b/arch/arm/include/asm/u-boot-arm.h index 9f3cae5..f16861a 100644 --- a/arch/arm/include/asm/u-boot-arm.h +++ b/arch/arm/include/asm/u-boot-arm.h @@ -30,12 +30,8 @@ #define _U_BOOT_ARM_H_ 1 /* for the following variables, see start.S */ -extern ulong _bss_start_ofs; /* BSS start relative to _start */ -extern ulong _bss_end_ofs; /* BSS end relative to _start */ -extern ulong _end_ofs; /* end of image relative to _start */ extern ulong IRQ_STACK_START; /* top of IRQ stack */ extern ulong FIQ_STACK_START; /* top of FIQ stack */ -extern ulong _TEXT_BASE; /* code start */ extern ulong _datarel_start_ofs; extern ulong _datarelrolocal_start_ofs; extern ulong _datarellocal_start_ofs; diff --git a/arch/arm/lib/board.c b/arch/arm/lib/board.c index 162e2cc..0521178 100644 --- a/arch/arm/lib/board.c +++ b/arch/arm/lib/board.c @@ -53,6 +53,7 @@ #include #include #include +#include #ifdef CONFIG_BITBANGMII #include diff --git a/board/cm4008/flash.c b/board/cm4008/flash.c index 5522bf0..0faf197 100644 --- a/board/cm4008/flash.c +++ b/board/cm4008/flash.c @@ -29,6 +29,7 @@ #include #include +#include flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS]; /* info for FLASH chips */ diff --git a/board/cm41xx/flash.c b/board/cm41xx/flash.c index 5522bf0..0faf197 100644 --- a/board/cm41xx/flash.c +++ b/board/cm41xx/flash.c @@ -29,6 +29,7 @@ #include #include +#include flash_info_t flash_info[CONFIG_SYS_MAX_FLASH_BANKS]; /* info for FLASH chips */