From patchwork Thu Feb 3 11:59:51 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Schwierzeck X-Patchwork-Id: 81634 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 9994DB70EA for ; Thu, 3 Feb 2011 23:00:46 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id C101F283C1; Thu, 3 Feb 2011 13:00:30 +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 A4B-4xZDYFek; Thu, 3 Feb 2011 13:00:30 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id D9857283A0; Thu, 3 Feb 2011 13:00:19 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id D65B728369 for ; Thu, 3 Feb 2011 13:00:11 +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 2ElZqRaozDmX for ; Thu, 3 Feb 2011 13:00:11 +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 6BE4928302 for ; Thu, 3 Feb 2011 13:00:10 +0100 (CET) Received: by mail-fx0-f44.google.com with SMTP id 9so1143973fxm.3 for ; Thu, 03 Feb 2011 04:00:10 -0800 (PST) Received: by 10.223.81.70 with SMTP id w6mr5219671fak.62.1296734409879; Thu, 03 Feb 2011 04:00:09 -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 n2sm236339fam.28.2011.02.03.04.00.08 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 03 Feb 2011 04:00:09 -0800 (PST) From: daniel.schwierzeck@googlemail.com To: u-boot@lists.denx.de Date: Thu, 3 Feb 2011 12:59:51 +0100 Message-Id: <1296734392-15203-3-git-send-email-daniel.schwierzeck@googlemail.com> X-Mailer: git-send-email 1.7.3.5 In-Reply-To: <1296734392-15203-1-git-send-email-daniel.schwierzeck@googlemail.com> References: <1296734392-15203-1-git-send-email-daniel.schwierzeck@googlemail.com> Subject: [U-Boot] [PATCH 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)