Sorry, there are some simple mistakes. The reason why all these errors occurred is an "=" missing in the instructions. ldr sp, _svc_stack it should be: ldr sp, =_svc_stack :) Kevin --- In lpc2000@yahoogroups.com, "volunteer_sysu" <volunteer01@...> wrote: > > I am quite new to LPC2000. When I was trying to building up a > program, I encountered some problems. Would you please do me a > favour, thank you very much! > The problem is some errors occurred when I made the Makefile. The > errors are as follows. > $ make > arm-linux-gcc -arm-32-msoft-float-mno-fpu -c -o startup.o startup.S > startup.S: Assembler messages: > startup.S:69: Error: internal_relocation (type: OFFSET_IMM) not > fixed up > startup.S:72: Error: internal_relocation (type: OFFSET_IMM) not > fixed up > startup.S:75: Error: internal_relocation (type: OFFSET_IMM) not > fixed up > startup.S:78: Error: internal_relocation (type: OFFSET_IMM) not > fixed up > startup.S:81: Error: internal_relocation (type: OFFSET_IMM) not > fixed up > startup.S:84: Error: internal_relocation (type: OFFSET_IMM) not > fixed up > startup.S:119: Error: internal_relocation (type: OFFSET_IMM) not > fixed up > startup.S:120: Error: internal_relocation (type: OFFSET_IMM) not > fixed up > startup.S:128: Error: internal_relocation (type: OFFSET_IMM) not > fixed up > startup.S:129: Error: internal_relocation (type: OFFSET_IMM) not > fixed up > make: *** [startup.o] Error 1 > > And codes where errors occurred are as follows. > StackInit: > mov r0, lr > /* build the SVC stack */ > msr cpsr_c, #0xd3 > ldr sp, _svc_stack > /* build the IRQ stack */ > msr cpsr_c, #0xd2 > ldr sp, _irp_stack > /* build the FIQ stack */ > msr cpsr_c, #0xd1 > ldr sp, _fiq_stack > /* build the ABT stack */ > msr cpsr_c, #0xd7 > ldr sp, _abort_stack > /* build the UND stack */ > msr cpsr_c, #0xdb > ldr sp, _undefined_stack > /* build the SYS stack */ > msr cpsr_c, #0xdf > ldr sp, _usr_stack > /* return back */ > mov pc, r0 > > I did defined the variables: _svc_stack, _irq_stack, ..., in the > link file and allocated them to a specific address by using such an > expression: _svc_stack=.; ,what's wrong? Help! Thanks again for your > attention. > > Best regards, > > Kevin >
Message
Re: Makefile help?
2006-04-06 by volunteer_sysu
Attachments
- No local attachments were found for this message.