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

See the CrossGCC FAQ for lots more information.


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

RE: Difference in assemble language


Hi Richard,

I have just come to the knowledge that i cannot use files from ARM STD when
i am building an application with GNU-tools. After i corrected the below
problem a lot of other problem appeared. It seams that i have two option.
One is to re-write the cstartup_angel.s that i am trying to assemble so it
complies with GNU tools. The other is to find a project that is up and
running and take the startup-file from there. Do you know of any such
project? 

Currently i am setting up an AT91 EB40 board with all its registers

As to the below mail I tried with the following:

arm-elf-as -o cstartup_angel.o cstartup_angel.S

.....but unfortunately i got the same errors i.e 

bash.exe-2.04$ arm-elf-as -o cstartup_angel.o cstartup_angel.S
cstartup_angel.S: Assembler messages:
cstartup_angel.S:16: Error: bad instruction `area
reset,CODE,READONLY,INTERWORK'
cstartup_angel.S:18: Error: bad instruction `include targets/eb40/eb40.inc'
cstartup_angel.S:21: Error: bad instruction `irq_stack_size EQU(3*8*4)'
cstartup_angel.S:21: Error: Rest of line ignored. First ignored character is
`3'.
cstartup_angel.S:22: Error: bad instruction `fiq_stack_size EQU(3*4)'
cstartup_angel.S:22: Error: Rest of line ignored. First ignored character is
`3'.
cstartup_angel.S:23: Error: bad instruction `abt_stack_size EQU(3*4)'
cstartup_angel.S:23: Error: Rest of line ignored. First ignored character is
`3'.
cstartup_angel.S:24: Error: bad instruction `und_stack_size EQU(3*4)'
cstartup_angel.S:24: Error: Rest of line ignored. First ignored character is
`3'.
cstartup_angel.S:25: Error: bad instruction `sys_stack_size EQU(4*1024)'
cstartup_angel.S:25: Error: Rest of line ignored. First ignored character is
`4'.
cstartup_angel.S:27: Error: bad instruction `import main'
cstartup_angel.S:29: Error: bad instruction `import |Image$$RO$$Limit|'

..and so on....

Isn't there a GNU assembler that can take an ARMASM-file as an input? 

/Daniel





-----Original Message-----
From: Richard Earnshaw [mailto:rearnsha@arm.com]
Sent: den 28 mars 2001 11:19
To: Andersson Daniel
Cc: cdavies@altera.com; crossgcc@sourceware.cygnus.com;
Richard.Earnshaw@arm.com
Subject: Re: Difference in assemble language 



Daniel.Andersson@combitechsystems.com said:
> bash.exe-2.04$ make
> as   -o cstartup_angel.o cstartup_angel.s
> cstartup_angel.s: Assembler messages: 

Hmm, are you sure 'as' isn't your native assembler?  shouldn't you be 
using arm-<target>-as here?


> cstartup_angel.s:82: Error: no such instruction: `ldr r10,PtInitTableEBI' 

This seems to confirm the above.

Clive's other comments about the directive statements still holds.

R.


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


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