From patchwork Wed Feb 6 09:21:03 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [U-Boot] helper: Add architecture specific symbol prefix in the uboot list link script. Date: Tue, 05 Feb 2013 23:21:03 -0000 From: Sonic Zhang X-Patchwork-Id: 218508 Message-Id: <1360142463-5035-1-git-send-email-sonic.adi@gmail.com> To: Marek Vasut , Albert Aribaud Cc: u-boot-devel@blackfin.uclinux.org, u-boot@lists.denx.de, Sonic Zhang 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