Hallo allemaal,
Al een hele tijd probeer ik bestanden te compileren voor ARM7 processoren. De nieuwste versie van codesourcery (C compiler) heb ik gedownload en krijg steeds een foutmelding over de linker.
Hoewel ik denk dat het aan de compiler ligt post ik toch de makefile:
Wie o wie kan mij helpen
mvg Jan Bot
Al een hele tijd probeer ik bestanden te compileren voor ARM7 processoren. De nieuwste versie van codesourcery (C compiler) heb ik gedownload en krijg steeds een foutmelding over de linker.
code:
1
2
3
4
5
| arm-none-eabi-ld -v -Map blink.map -Tram-ln.cmd -o blink.elf crt.o blink.o GNU ld (Sourcery G++ Lite 2010q1-188) 2.19.51.20090709 blink.o:(.ARM.exidx+0x0): undefined reference to `__aeabi_unwind_cpp_pr0' blink.o:(.ARM.exidx+0x8): undefined reference to `__aeabi_unwind_cpp_pr1' make: *** [blink.elf] Error 1 |
Hoewel ik denk dat het aan de compiler ligt post ik toch de makefile:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
| # Makefile for Adam's LED blink example # Our tools. CC = arm-none-eabi-gcc LD = arm-none-eabi-ld AS = arm-none-eabi-as CP = arm-none-eabi-objcopy # Commandline options for each tool. CFLAGS = -I./ -c -fno-common -O0 -g AFLAGS = -ahls -mapcs-32 -o crt.o LFLAGS = -v -Map blink.map -Tram-ln.cmd CPFLAGS = --output-target=ihex # Our target. all: blink.hex clean: rm -f *.o *.hex *.elf *.map *.lst core *~ # Convert ELF binary to Intel HEX file. blink.hex: blink.elf $(CP) $(CPFLAGS) blink.elf blink.hex # Link - this produces an ELF binary. blink.elf: blink.o crt.o $(LD) $(LFLAGS) -o blink.elf crt.o blink.o # Compile the C runtime. crt.o: ram-crt.s $(AS) $(AFLAGS) ram-crt.s > crt.lst # Compile the main program. blink.o: blink.c $(CC) $(CFLAGS) -c blink.c |
Wie o wie kan mij helpen
mvg Jan Bot