Re: [arm-gnu] small Example project for Sourcery G++ Lite 2009q1-161
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [arm-gnu] small Example project for Sourcery G++ Lite 2009q1-161



Maik Scholz wrote:
LD=arm-none-eabi-ld

Change this to "LD=arm-none-eab-gcc", use the compiler to link your program, it knows what is required to link.

${ODIR}/AbortOverlayTest.elf: $(TARGET_DEPENDENCIES) $(TARGET_OBJECTS)
    $(LD) -o $@ $(TARGET_OBJECTS) $(LDFLAGS) \
-L"C:\Programme\CodeSourcery\Sourcery G++ Lite\lib\gcc\arm-none-eabi\4.3.3" \
        -L"C:\Programme\CodeSourcery\Sourcery G++ Lite\arm-none-eabi\lib" \
"C:\Programme\CodeSourcery\Sourcery G++ Lite\lib\gcc\arm-none-eabi\4.3.3\crti.o"
        -Map=${ODIR}/HelloWorldTest.map

Rewrite the link as:
$(LD) $(LDFLAGS) -o $@ $(TARGET_OBJECTS) -Wl,-Map=${ODIR}/HelloWorldTest.map

Hopefully that helps.

Cheers,
Carlos.
--
Carlos O'Donell
CodeSourcery
carlos@xxxxxxxxxxxxxxxx
(650) 331-3385 x716