GCC-ARM-ELF options

GCC-ARM-ELF options

Post by Doru » Wed, 19 Jan 2005 15:37:07


Hi,

I'm trying to use a JTAG emulator for an AT91RM9200 CPU but I cannot
view the C source code in the de *** 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 de *** 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)
 
 
 

GCC-ARM-ELF options

Post by roeid » Wed, 19 Jan 2005 17:52:34

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.

 
 
 

GCC-ARM-ELF options

Post by Doru » Thu, 20 Jan 2005 02:28:31

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 de *** .
Regards,
Doru.
 
 
 

GCC-ARM-ELF options

Post by Doru » Fri, 21 Jan 2005 02:22:14

Problem was solved by a simple dot after the OUTDIR= declaration so it
should be
OUTDIR=.

Thanks,
Doru.