Re: [U-Boot] [PATCH 2/3] MIPS: Purple: Fix multiple definition error on final linking of u-boot binary

2011-02-05 Thread Shinya Kuribayashi
On 02/03/2011 08:59 PM, daniel.schwierz...@googlemail.com wrote:
 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.

Confirmed.

 That patch could not be tested but the resulting u-boot.map still looks
 good. The start symbol is at 0xB000, the environment at 0xB0008000
 so u-boot should boot.

Agreed.

 --- 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)

This is ok, though we have some room for further cealnups.  With having
.text statement in the lowlevel_init.S, we could remove all these lines.

Applied anyway, thanks for the patch.
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] [PATCH 2/3] MIPS: Purple: Fix multiple definition error on final linking of u-boot binary

2011-02-05 Thread Wolfgang Denk
Dear Shinya Kuribayashi,

In message 4d4d3e6b.2040...@pobox.com you wrote:

  --- 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)
 
 This is ok, though we have some room for further cealnups.  With having
 .text statement in the lowlevel_init.S, we could remove all these lines.

The prupose of explicitly pulling in these objects at that place is to
fill in the first flash sector below the sector(s) that is/are
reserved for the environment (we call this setup embedded
environment).

But then, the Purple board has not been actively maintained for years,
and I guess we could as well remove it.  At least I have not had
access to this board for several yars.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH, MD: Wolfgang Denk  Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: w...@denx.de
The more complex the mind, the greater the need for the simplicity of
play.
-- Kirk, Shore Leave, stardate 3025.8
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH 2/3] MIPS: Purple: Fix multiple definition error on final linking of u-boot binary

2011-02-03 Thread daniel . schwierzeck
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 0xB000, the environment at 0xB0008000
so u-boot should boot.

Signed-off-by: Daniel Schwierzeck daniel.schwierz...@googlemail.com
Cc: Wolfgang Denk w...@denx.de
---
 board/purple/u-boot.lds |5 -
 1 files changed, 0 insertions(+), 5 deletions(-)

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)

--
1.7.3.5

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot