 | | From: | Doru | | Subject: | GCC-ARM-ELF options | | Date: | 17 Jan 2005 22:37:07 -0800 |
|
|
 | Hi,
I'm trying to use a JTAG emulator for an AT91RM9200 CPU but I cannot view the C source code in the debugger Chameleon from Signum Software. I've been told that it is because I don't have enough debug information in my elf files. I read the as, gcc and ld manuals and I tried a lot of settings but I could make the debugger see the C source code. I'm using the GNU Xtools from Microcross arm-elf-gcc v3.2.
Can anybody help me with these options.
Thanks a lot, Doru.
The options that I currently use are listed below: OUTFILE=Basic.elf CFG_INC= CFG_LIB=/cygdrive/c/Cygwin/lib/gcc-lib/arm-elf/3.2/libgcc.a CFG_OBJ= COMMON_OBJ=init.o main.o cstartup.o
OBJ=$(COMMON_OBJ) $(CFG_OBJ)
COMPILE_S=arm-elf-as.exe -g1 -ggdb -ahls -mapcs-32 -marm920 -EL -o "$(*F).o" $(CFG_INC) "$<" COMPILE_CC=arm-elf-gcc -c -g1 -ggdb -DAT91RM9200 -mlittle-endian -mapcs-32 -mcpu=arm920 -o "$(*F).o" $(CFG_INC) "$<" -fno-exceptions -fno-rtti COMPILE=arm-elf-gcc -c -g1 -ggdb -DAT91RM9200 -mlittle-endian -mapcs-32 -mcpu=arm920 -o "$(*F).o" $(CFG_INC) "$<" LINK=arm-elf-gcc -g1 -ggdb -Wl -TBasic.ld -nostdlib -o "Basic.elf" $(OBJ) $(CFG_LIB)
|
|
 | | From: | Doru | | Subject: | Re: GCC-ARM-ELF options | | Date: | 19 Jan 2005 09:22:14 -0800 |
|
|
 | Problem was solved by a simple dot after the OUTDIR= declaration so it should be OUTDIR=.
Thanks, Doru.
|
|
 | | From: | roeido at yahoo.com | | Subject: | Re: GCC-ARM-ELF options | | Date: | 18 Jan 2005 00:52:34 -0800 |
|
|
 | Hi,
I don't know if this your problem but in the linking the cstartup.o should be the first file in the linker list.
|
|
 | | From: | Doru | | Subject: | Re: GCC-ARM-ELF options | | Date: | 18 Jan 2005 09:28:31 -0800 |
|
|
 | Hi,
Thanks for your reply.
In the linker script the section .reset where the code in cstartup.o is located is placed at address 0. I verified the organization of the elf file with objdump -S and it is what I wanted. Actually the program works but I just cannot see the C sources in the debugger. Regards, Doru.
|
|