2009-03-31 01:10:44     Assembly file compilation error

Document created by Aaronwu Employee on Aug 14, 2013
Version 1Show Document
  • View in full screen mode

2009-03-31 01:10:44     Assembly file compilation error

svs k (INDIA)

Message: 71807   

 

Hi All,

 

I have a problem in compiling an assembly file when i give the following command

 

bfin-linux-uclibc-gcc  -mfdpic  -c  asmfile.S   -o asmfile.o

 

I m getting the following error message for more than 100 lines in the same file. Can you please tell me what might be the problem? i have few other assembly files which are compiling without any problem.

 

 

 

asmfile.S: Assembler messages:

asmfile.S:73: Error: pcrel too far BFD_RELOC_BFIN_10

asmfile.S:78: Error: pcrel too far BFD_RELOC_BFIN_10

asmfile.S:91: Error: pcrel too far BFD_RELOC_BFIN_10

 

 

 

Regards,

 

svsk

 

 

QuoteReplyEditDelete

 

 

2009-03-31 01:14:27     Re: Assembly file compilation error

Mike Frysinger (UNITED STATES)

Message: 71808   

 

use the right jump/call instruction.  short jumps cannot reach long targets.

QuoteReplyEditDelete

 

 

2009-03-31 02:07:20     Re: Assembly file compilation error

svs k (INDIA)

Message: 71813   

 

 

 

Hi,

 

Thanks for your inputs.

 

The same file has been compiled in vdsp without any issue.

 

I have attached the asm file and the supporting header files for your reference.

 

 

 

Regards,

 

svsk.

 

header2.h

header1.h

asmfile.S

QuoteReplyEditDelete

 

 

2009-03-31 02:21:42     Re: Assembly file compilation error

Mike Frysinger (UNITED STATES)

Message: 71815   

 

the fact that VDSP assembled it is irrelevant.  use a jump.l like i said.

Attachments

Outcomes