This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: JMPADD reloc in MIPS ECOFF file
- From: "Alexander Voropay" <alec at artcoms dot ru>
- To: "Nick Clifton" <nickc at redhat dot com>
- Cc: <binutils at sources dot redhat dot com>
- Date: Fri, 11 Mar 2005 16:23:05 +0300
- Subject: Re: JMPADD reloc in MIPS ECOFF file
- Organization: Art Communications
- References: <001201c51e87$01d14f80$6cf9a8c0@ALEC> <42286F42.2000703@redhat.com>
- Reply-to: "Alexander Voropay" <alec at artcoms dot ru>
Hi!
Can anyone help me ? How to force MIPS binutils to emit an
ECOFF object file with JMPADDR relocs ?
I think that the only way you are going to get what you want is to find
an old version of the VxWorks toolchain (for MIPS) and use that.
I've built a binutils-2.15 with a just plain "./configure --target=mips-ecoff"
This makes a object files with JMPADDR as required by VxWorks loader!
$ /mips/binutils-2.15/binutils/objdump -i
BFD header file version 2.15
ecoff-bigmips
(header big endian, data big endian)
mips
ecoff-littlemips
(header little endian, data little endian)
mips
...
$ /mips//binutils-2.15/binutils/objdump -x /mips/app/hellovx/test.o
/mips/app/hellovx/test.o: file format ecoff-bigmips
/mips/app/hellovx/test.o
architecture: mips:3000, flags 0x00000031:
HAS_RELOC, HAS_SYMS, HAS_LOCALS
start address 0x00000000
Sections:
Idx Name Size VMA LMA File off Algn
0 .text 00000030 00000000 00000000 000000f0 2**4
CONTENTS, ALLOC, LOAD, RELOC, CODE
1 .rdata 00000010 00000030 00000030 00000120 2**4
CONTENTS, ALLOC, LOAD, READONLY, DATA
2 .data 00000000 00000040 00000040 00000130 2**4
CONTENTS, ALLOC, LOAD, DATA
3 .bss 00000000 00000040 00000040 00000000 2**4
ALLOC
SYMBOL TABLE:
[ 0] e 00000000 st 0 sc 0 indx fffff entry
[ 1] e 00000000 st 1 sc 6 indx fffff printf
[ 3] l 00000000 st 5 sc 1 indx fffff entry
RELOCATION RECORDS FOR [.text]:
OFFSET TYPE VALUE
00000004 REFHI .rdata+0xffffffd0
00000008 REFLO .rdata+0xffffffd0
00000010 JMPADDR printf
--
-=AV=-