From patchwork Tue May 28 07:01:48 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Albert ARIBAUD X-Patchwork-Id: 246712 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 84D5E2C02FD for ; Tue, 28 May 2013 17:03:36 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 01C2D4A044; Tue, 28 May 2013 09:03:20 +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 FlkoHvK1gCGk; Tue, 28 May 2013 09:03:19 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id C1A004A054; Tue, 28 May 2013 09:03:05 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 155834A01B for ; Tue, 28 May 2013 09:02:54 +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 YodTCSoJC8zI for ; Tue, 28 May 2013 09:02:52 +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 smtp1-g21.free.fr (smtp1-g21.free.fr [212.27.42.1]) by theia.denx.de (Postfix) with ESMTP id 019B24A023 for ; Tue, 28 May 2013 09:02:29 +0200 (CEST) Received: from localhost.localdomain (unknown [IPv6:2a01:e35:2eb9:20:25fe:afa7:d06f:ecf7]) (Authenticated sender: albert.aribaud) by smtp1-g21.free.fr (Postfix) with ESMTPSA id 36DBC94026C; Tue, 28 May 2013 09:02:17 +0200 (CEST) From: Albert ARIBAUD To: U-Boot Date: Tue, 28 May 2013 09:01:48 +0200 Message-Id: <1369724512-4047-4-git-send-email-albert.u.boot@aribaud.net> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1369724512-4047-3-git-send-email-albert.u.boot@aribaud.net> References: <1368561780-19104-1-git-send-email-albert.u.boot@aribaud.net> <1369724512-4047-1-git-send-email-albert.u.boot@aribaud.net> <1369724512-4047-2-git-send-email-albert.u.boot@aribaud.net> <1369724512-4047-3-git-send-email-albert.u.boot@aribaud.net> Subject: [U-Boot] [PATCH v2 3/6] arm: generalize lib/bss.c into lib/sections.c 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 File arch/arm/lib/bss.c was initially defined for BSS only, but is now going to also contain definitions for other section-boundary-related symbols, so rename it for better accuracy. Also, remove useless 'used' attributes. Signed-off-by: Albert ARIBAUD --- Changes in v2: None arch/arm/lib/Makefile | 2 +- arch/arm/lib/{bss.c => sections.c} | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) rename arch/arm/lib/{bss.c => sections.c} (92%) diff --git a/arch/arm/lib/Makefile b/arch/arm/lib/Makefile index 30e3290..dbad5c1 100644 --- a/arch/arm/lib/Makefile +++ b/arch/arm/lib/Makefile @@ -43,7 +43,7 @@ SOBJS-y += relocate.o ifndef CONFIG_SYS_GENERIC_BOARD COBJS-y += board.o endif -COBJS-y += bss.o +COBJS-y += sections.o COBJS-y += bootm.o COBJS-$(CONFIG_SYS_L2_PL310) += cache-pl310.o diff --git a/arch/arm/lib/bss.c b/arch/arm/lib/sections.c similarity index 92% rename from arch/arm/lib/bss.c rename to arch/arm/lib/sections.c index 99eda59..e52fec9 100644 --- a/arch/arm/lib/bss.c +++ b/arch/arm/lib/sections.c @@ -35,5 +35,5 @@ * aliasing warnings. */ -char __bss_start[0] __attribute__((used, section(".__bss_start"))); -char __bss_end[0] __attribute__((used, section(".__bss_end"))); +char __bss_start[0] __attribute__((section(".__bss_start"))); +char __bss_end[0] __attribute__((section(".__bss_end")));