From patchwork Wed Feb 6 09:21:03 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sonic Zhang X-Patchwork-Id: 218508 X-Patchwork-Delegate: wd@denx.de 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 2BE4B2C0294 for ; Wed, 6 Feb 2013 20:40:46 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id CE7FC4A102; Wed, 6 Feb 2013 10:40:42 +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 gJkw0r-yA5sH; Wed, 6 Feb 2013 10:40:42 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 3DD564A103; Wed, 6 Feb 2013 10:40:40 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id CD6B34A103 for ; Wed, 6 Feb 2013 10:40:38 +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 DQe+7+KB3Uhw for ; Wed, 6 Feb 2013 10:40:36 +0100 (CET) X-Greylist: delayed 908 seconds by postgrey-1.27 at theia; Wed, 06 Feb 2013 10:40:34 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 co9outboundpool.messaging.microsoft.com (co9ehsobe002.messaging.microsoft.com [207.46.163.25]) by theia.denx.de (Postfix) with ESMTPS id 3015F4A102 for ; Wed, 6 Feb 2013 10:40:34 +0100 (CET) Received: from mail216-co9-R.bigfish.com (10.236.132.237) by CO9EHSOBE001.bigfish.com (10.236.130.64) with Microsoft SMTP Server id 14.1.225.23; Wed, 6 Feb 2013 09:25:23 +0000 Received: from mail216-co9 (localhost [127.0.0.1]) by mail216-co9-R.bigfish.com (Postfix) with ESMTP id D9A983A064A; Wed, 6 Feb 2013 09:25:23 +0000 (UTC) X-Forefront-Antispam-Report: CIP:137.71.25.55; KIP:(null); UIP:(null); IPV:NLI; H:nwd2mta1.analog.com; RD:nwd2mail10.analog.com; EFVD:NLI X-SpamScore: 12 X-BigFish: VS12(zzzz1ee6h1ce5h1202h1e76h1d1ah1cabh1d2ahzz8275bhz2ei87h2a8h668h839hd24he5bh1288h12a5h12a9h12bdh12e5h1354h137ah139eh13b6h13eah1441h1504h1537h15a8h162dh1631h1758h17eeh1898h18e1h1946h19b5hff4m1355m129fi1155h) Received-SPF: neutral (mail216-co9: 137.71.25.55 is neither permitted nor denied by domain of gmail.com) client-ip=137.71.25.55; envelope-from=sonic.adi@gmail.com; helo=nwd2mta1.analog.com ; 1.analog.com ; X-FB-DOMAIN-IP-MATCH: fail Received: from mail216-co9 (localhost.localdomain [127.0.0.1]) by mail216-co9 (MessageSwitch) id 136014272140850_19826; Wed, 6 Feb 2013 09:25:21 +0000 (UTC) Received: from CO9EHSMHS011.bigfish.com (unknown [10.236.132.239]) by mail216-co9.bigfish.com (Postfix) with ESMTP id 05D5234006B; Wed, 6 Feb 2013 09:25:21 +0000 (UTC) Received: from nwd2mta1.analog.com (137.71.25.55) by CO9EHSMHS011.bigfish.com (10.236.130.21) with Microsoft SMTP Server (TLS) id 14.1.225.23; Wed, 6 Feb 2013 09:25:20 +0000 Received: from NWD2HUBCAS5.ad.analog.com (nwd2hubcas5.ad.analog.com [10.64.72.161]) by nwd2mta1.analog.com (8.13.8/8.13.8) with ESMTP id r169PJ30018278 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=FAIL); Wed, 6 Feb 2013 01:25:19 -0800 Received: from NWD2HUBCAS2.ad.analog.com (10.64.73.30) by NWD2HUBCAS5.ad.analog.com (10.64.72.161) with Microsoft SMTP Server (TLS) id 14.2.328.9; Wed, 6 Feb 2013 04:25:19 -0500 Received: from zeus.spd.analog.com (10.64.82.11) by NWD2HUBCAS2.ad.analog.com (10.64.73.30) with Microsoft SMTP Server id 8.3.83.0; Wed, 6 Feb 2013 04:25:18 -0500 Received: from linux.site ([10.99.22.20]) by zeus.spd.analog.com (8.14.5/8.14.5) with ESMTP id r169PHGc012813; Wed, 6 Feb 2013 04:25:18 -0500 Received: from localhost.localdomain (unknown [10.99.22.81]) by linux.site (Postfix) with ESMTP id 53A4B429D505; Tue, 5 Feb 2013 18:56:22 -0700 (MST) From: Sonic Zhang To: Marek Vasut , Albert Aribaud Date: Wed, 6 Feb 2013 17:21:03 +0800 Message-ID: <1360142463-5035-1-git-send-email-sonic.adi@gmail.com> X-Mailer: git-send-email 1.7.0.4 MIME-Version: 1.0 Cc: u-boot-devel@blackfin.uclinux.org, u-boot@lists.denx.de, Sonic Zhang Subject: [U-Boot] [PATCH] helper: Add architecture specific symbol prefix in the uboot list link script. 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: , Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de From: Sonic Zhang Blackfin compiler add prefix '_' to each symbols. All symbols defined in the link script should have this prefix. Add it to the uboot list helper function make_u_boot_list. Signed-off-by: Sonic Zhang --- helper.mk | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/helper.mk b/helper.mk index 79a1da0..16e4cfd 100644 --- a/helper.mk +++ b/helper.mk @@ -58,7 +58,7 @@ $(1): $(2) -e ':s /^.\+$$$$/ { p;s/^\(.*\)\.[^\.]*$$$$/\1/;b s }' | \ sed -n -e 'h;s/$$$$/\a/p;g;s/$$$$/@/p;g;s/$$$$/~/p;' | \ LC_COLLATE=C sort -u | \ - sed -n -e '/\a$$$$/ { s/\./_/g;s/\a$$$$/__start = .;/p; }'\ - -e '/~$$$$/ { s/\./_/g;s/~$$$$/__end = .;/p; }'\ + sed -n -e '/\a$$$$/ { s/\./_/g;s/\_u_boot_list/$(SYM_PREFIX)_u_boot_list/g;s/\a$$$$/__start = .;/p; }'\ + -e '/~$$$$/ { s/\./_/g;s/\_u_boot_list/$(SYM_PREFIX)_u_boot_list/g;s/~$$$$/__end = .;/p; }'\ -e '/@$$$$/ { s/\(.*\)@$$$$/*(SORT(\1.*));/p }' > $(1) endef