From patchwork Thu Feb 3 13:17:09 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Schwierzeck X-Patchwork-Id: 81642 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 E686CB7126 for ; Fri, 4 Feb 2011 00:17:49 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 69A40283E1; Thu, 3 Feb 2011 14:17:36 +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 IMGZ01WbyDY2; Thu, 3 Feb 2011 14:17:36 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 4BE4B283E2; Thu, 3 Feb 2011 14:17:25 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id F1CEC28392 for ; Thu, 3 Feb 2011 14:17:21 +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 Tg52bvp-DGXr for ; Thu, 3 Feb 2011 14:17:21 +0100 (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 mail-fx0-f44.google.com (mail-fx0-f44.google.com [209.85.161.44]) by theia.denx.de (Postfix) with ESMTPS id 6ECDB2838E for ; Thu, 3 Feb 2011 14:17:21 +0100 (CET) Received: by mail-fx0-f44.google.com with SMTP id 9so1224474fxm.3 for ; Thu, 03 Feb 2011 05:17:21 -0800 (PST) Received: by 10.223.95.203 with SMTP id e11mr10014982fan.60.1296739041058; Thu, 03 Feb 2011 05:17:21 -0800 (PST) Received: from localhost.localdomain (dslb-088-073-202-055.pools.arcor-ip.net [88.73.202.55]) by mx.google.com with ESMTPS id 11sm269767faw.20.2011.02.03.05.17.18 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 03 Feb 2011 05:17:19 -0800 (PST) From: daniel.schwierzeck@googlemail.com To: u-boot@lists.denx.de Date: Thu, 3 Feb 2011 14:17:09 +0100 Message-Id: <1296739030-4416-3-git-send-email-daniel.schwierzeck@googlemail.com> X-Mailer: git-send-email 1.7.3.5 In-Reply-To: <1296739030-4416-1-git-send-email-daniel.schwierzeck@googlemail.com> References: <1296739030-4416-1-git-send-email-daniel.schwierzeck@googlemail.com> Subject: [U-Boot] [PATCH v2 2/3] MIPS: Purple: Fix multiple definition error on final linking of u-boot binary 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 The linker of recent toolchains complains about multiple definitions on final linking of u-boot binary. This patch removes all redundant object files from u-boot.lds those are already added to .text section by the linker. That patch could not be tested but the resulting u-boot.map still looks good. The start symbol is at 0xB0000000, the environment at 0xB0008000 so u-boot should boot. Signed-off-by: Daniel Schwierzeck Cc: Wolfgang Denk --- board/purple/u-boot.lds | 5 ----- 1 files changed, 0 insertions(+), 5 deletions(-) -- 1.7.3.5 diff --git a/board/purple/u-boot.lds b/board/purple/u-boot.lds index 542601a..719f268 100644 --- a/board/purple/u-boot.lds +++ b/board/purple/u-boot.lds @@ -36,11 +36,6 @@ SECTIONS { arch/mips/cpu/start.o (.text) board/purple/lowlevel_init.o (.text) - arch/mips/cpu/cache.o (.text) - common/main.o (.text) - common/dlmalloc.o (.text) - common/cmd_boot.o (.text) - lib/zlib.o (.text) . = DEFINED(env_offset) ? env_offset : .; common/env_embedded.o (.ppcenv)