From patchwork Tue Jul 26 09:25:16 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chander Kashyap X-Patchwork-Id: 106813 X-Patchwork-Delegate: promsoft@gmail.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 4F3B0B6FF5 for ; Tue, 26 Jul 2011 19:25:39 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 8C483280B6; Tue, 26 Jul 2011 11:25:37 +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 549hdtmfVz36; Tue, 26 Jul 2011 11:25:37 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id A0342280BC; Tue, 26 Jul 2011 11:25:35 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id D8F65280BC for ; Tue, 26 Jul 2011 11:25:33 +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 Zr8rNagDxHzA for ; Tue, 26 Jul 2011 11:25:33 +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-vw0-f44.google.com (mail-vw0-f44.google.com [209.85.212.44]) by theia.denx.de (Postfix) with ESMTPS id 089FA280B6 for ; Tue, 26 Jul 2011 11:25:31 +0200 (CEST) Received: by vws12 with SMTP id 12so156518vws.3 for ; Tue, 26 Jul 2011 02:25:30 -0700 (PDT) Received: by 10.52.90.244 with SMTP id bz20mr5540680vdb.226.1311672330137; Tue, 26 Jul 2011 02:25:30 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id z4sm120533vcd.11.2011.07.26.02.25.26 (version=SSLv3 cipher=OTHER); Tue, 26 Jul 2011 02:25:29 -0700 (PDT) From: Chander Kashyap To: u-boot@lists.denx.de Date: Tue, 26 Jul 2011 14:55:16 +0530 Message-Id: <1311672316-14382-1-git-send-email-chander.kashyap@linaro.org> X-Mailer: git-send-email 1.7.4.1 Cc: linaro-dev@lists.linaro.org, bjlee@samsung.com, patches@linaro.org, mk7.kang@samsung.com, samsung@lists.linaro.org Subject: [U-Boot] [PATCH] SMDKV310: Fix undefined reference error X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.9 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 Fix buld error: undefined reference to '__image_copy_end' and `save_boot_params'. start.o: In function `_image_copy_end_ofs': mmc_spl/board/samsung/smdkv310/start.S:44: undefined reference to `__image_copy_end' start.o: In function `reset': mmc_spl/board/samsung/smdkv310/start.S:137: undefined reference to `save_boot_params' Signed-off-by: Chander Kashyap --- mmc_spl/board/samsung/smdkv310/mmc_boot.c | 4 ++++ mmc_spl/board/samsung/smdkv310/u-boot.lds | 2 ++ 2 files changed, 6 insertions(+), 0 deletions(-) diff --git a/mmc_spl/board/samsung/smdkv310/mmc_boot.c b/mmc_spl/board/samsung/smdkv310/mmc_boot.c index 566f34e..dea1b86 100644 --- a/mmc_spl/board/samsung/smdkv310/mmc_boot.c +++ b/mmc_spl/board/samsung/smdkv310/mmc_boot.c @@ -54,6 +54,10 @@ void board_init_r(gd_t *id, ulong dest_addr) ; } +void save_boot_params(u32 r0, u32 r1, u32 r2, u32 r3) +{ +} + void do_undefined_instruction(struct pt_regs *pt_regs) { } diff --git a/mmc_spl/board/samsung/smdkv310/u-boot.lds b/mmc_spl/board/samsung/smdkv310/u-boot.lds index 61cd16a..4a231d9 100644 --- a/mmc_spl/board/samsung/smdkv310/u-boot.lds +++ b/mmc_spl/board/samsung/smdkv310/u-boot.lds @@ -58,6 +58,8 @@ SECTIONS . = ALIGN(4); + __image_copy_end = .; + .rel.dyn : { __rel_dyn_start = .; *(.rel*)