Questionn: v850e ld support the option, --oformat srec ?

unno-y@necat.nec.co.jp unno-y@necat.nec.co.jp
Tue Aug 27 08:55:00 GMT 2002


Please HELP! everybody,

My ASIC has v850e core and ld for v850e can not generate correct S record file.
I made ld from binutils-2.10.tar.gz.
Does this version support the option, "--oformat srec" ? 

I configured GCC with options below:
  configure --target=v850-elf --prefix=/proj/tools --with-gnu-as --with-gnu-ld

I atatched information for this issue.

Thank you,
Yoshinori Unno

-------------

AA) my original assembler rouece file:

start at 0x0
        |
        V
	movhi	hi(_reset_start),r0,r14		/* 00000000H */
	movea	lo(_reset_start),r14,r14	/* 00000004H */
	jmp	[r14]				/* 00000008H */
	nop					/* 0000000AH */
        ......

_reset_start: <--- mapped 0x2000


BB) Ld generetes S record file, NG, when I add the option "--oformat srec".

S001FE
S31500000000407600002E7600006E0000000000000022
                        ^^^^ <--- NOT CORRECT!!!!
S315000000105C1A63FF010040FE00003FFE00007F0007
....


CC) Ld generetes elf file, OK, when I add nothing as option.
    I show v850-elf-objdump list.

00000000 <__START>:
       0:       40 76 00 00     movhi   0, r0, r14
       4:       2e 76 04 20     movea   8196, r14, r14
       8:       6e 00           jmp     [r14]
       a:       00 00           nop
       c:       00 00           nop
        ...



------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com



More information about the crossgcc mailing list