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: 3129 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 01DD724142 for ; Tue, 26 Jul 2011 09:25:32 +0000 (UTC) Received: from mail-qw0-f52.google.com (mail-qw0-f52.google.com [209.85.216.52]) by fiordland.canonical.com (Postfix) with ESMTP id C3F02A18761 for ; Tue, 26 Jul 2011 09:25:31 +0000 (UTC) Received: by qwb8 with SMTP id 8so147441qwb.11 for ; Tue, 26 Jul 2011 02:25:31 -0700 (PDT) Received: by 10.229.25.212 with SMTP id a20mr414355qcc.148.1311672331292; Tue, 26 Jul 2011 02:25:31 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.229.217.78 with SMTP id hl14cs104724qcb; Tue, 26 Jul 2011 02:25:30 -0700 (PDT) Received: by 10.52.93.82 with SMTP id cs18mr5759337vdb.345.1311672330517; Tue, 26 Jul 2011 02:25:30 -0700 (PDT) Received: from mail-vw0-f50.google.com (mail-vw0-f50.google.com [209.85.212.50]) by mx.google.com with ESMTPS id eq3si495020vdb.70.2011.07.26.02.25.30 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 26 Jul 2011 02:25:30 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.50 is neither permitted nor denied by best guess record for domain of chander.kashyap@linaro.org) client-ip=209.85.212.50; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.212.50 is neither permitted nor denied by best guess record for domain of chander.kashyap@linaro.org) smtp.mail=chander.kashyap@linaro.org Received: by vws14 with SMTP id 14so174811vws.37 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 Cc: mk7.kang@samsung.com, bjlee@samsung.com, patches@linaro.org, samsung@lists.linaro.org, linaro-dev@lists.linaro.org, Chander Kashyap Subject: [PATCH] SMDKV310: Fix undefined reference error 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 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*)