This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: JMPADD reloc in MIPS ECOFF file


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]