Subject: Re: MIPS switched to new-toolchain
To: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
From: Jason R Thorpe <thorpej@wasabisystems.com>
List: port-mips
Date: 01/10/2002 08:41:54
On Fri, Jan 11, 2002 at 12:08:33AM +0900, Izumi Tsutsui wrote:
> I've tried build.sh on my Express5800/230 (arc) and it works fine.
> But then kernels linked by new ld cannot be loaded by ARC BIOS,
> though kernels linked by old ld are working.
I think you want to delete .mdebug and .ident when copying to ECOFF.
You can do this by adding "-R .mdebug -R .ident" to the objcopy command.
> % size -Ax netbsd.new-ld
> netbsd.new-ld :
> section size addr
> .text 0x1fef70 0x80200000
> .rodata 0x4cfd0 0x803fef70
> .reginfo 0x18 0x8044bf40
> .data 0x9e80 0x8044bf60
> .sdata 0x10 0x80455de0
> .sbss 0x0 0x80455df0
> .bss 0x29428 0x80455df0
> .mdebug 0xd2ffc 0x0
> .ident 0x6192 0x0
I think this is correct, since .mdebug and .ident are not loaded sections.
--
-- Jason R. Thorpe <thorpej@wasabisystems.com>