I'm getting a link error with CCS 5.5 about an undefined reference to _kill():
c:/ccs5_5/ccsv5/tools/compiler/gcc-arm-none-eabi-4_7-2012q4/bin/../lib/gcc/arm-none-eabi/4.7.3/../../../../arm-none-eabi/lib/fpu\libc.a(lib_a-signalr.o): In function `_kill_r':signalr.c:(.text._kill_r+0x1c): undefined reference to `_kill'
g++.exe reports this version:
g++ (GNU Tools for ARM Embedded Processors) 4.7.3 20121207 (release) [ARM/embedded-4_7-branch revision 194305] Copyright (C) 2012 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
And strangely, objdump reports that kill is in the same library from where it's called:
+>objdump -t libc.a | findstr kill
00000000 *UND* 00000000 _kill_r
00000000 l d .text._kill_r 00000000 .text._kill_r
00000000 l .text._kill_r 00000000 $a
0000003c l .text._kill_r 00000000 $d
00000000 g F .text._kill_r 00000040 _kill_r
00000000 *UND* 00000000 _kill
lib_a-syskill.o: file format elf32-little
00000000 l df *ABS* 00000000 syskill.c
00000000 l d .text.kill 00000000 .text.kill
00000000 l .text.kill 00000000 $a
00000024 l .text.kill 00000000 $d
00000000 g F .text.kill 00000028 kill
00000000 *UND* 00000000 _kill_r
Here's my full linker command line. Changing rdimon to nosys didn't help.
"C:/CCS5_5/ccsv5/tools/compiler/gcc-arm-none-eabi-4_7-2012q4/bin/arm-none-eabi-g++.exe" -Wl,-Map,"..\..\..\..\..\exe\a15_memtest.map" -o"..\..\..\..\..\exe\a15_memtest.elf" CMakeFiles/a15_memtest.dir/__/common/micro5g_devboard_init.o CMakeFiles/a15_memtest.dir/__/boot/bootload.o ..\..\..\..\..\lib\libm5gige_firmware_hal_tda2xx_ism5g -mfloat-abi=hard -Dfar -Dgcc -D__DYNAMIC_REENT__ -D_INCLUDE_NIMU_CODE -D_INCLUDE_IPv6_CODE -D_NDK_EXTERN_CONFIG -ffunction-sections -fdata-sections -gstrict-dwarf -Wall -nostartfiles -static -Wl,-T"C:\Code\br\tools\build\\..\..\bin\SYSBios-elf-a15-m5gige-debug\generated/linker.cmd" -Wl,-Os -Wl,--gc-sections -Wl,-start -lgcc -lc -lm -lrdimon -Wl,-end"C:/CCS5_5/ccsv5/tools/compiler/gcc-arm-none-eabi-4_7-2012q4/bin/arm-none-eabi-g++.exe" -Wl,-Map,"..\..\..\..\..\exe\a15_bootwriter.map" -o"..\..\..\..\..\exe\a15_bootwriter.elf" CMakeFiles/a15_bootwriter.dir/vayu_init.o CMakeFiles/a15_bootwriter.dir/nandDma.o CMakeFiles/a15_bootwriter.dir/vayu_bootburn.o ..\..\..\..\..\lib\libm5gige_firmware_hal_tda2xx_starterware ..\..\..\..\..\lib\libm5gige_firmware_hal_tda2xx_ism5g -mfloat-abi=hard -Dfar -Dgcc -D__DYNAMIC_REENT__ -D_INCLUDE_NIMU_CODE -D_INCLUDE_IPv6_CODE -D_NDK_EXTERN_CONFIG -ffunction-sections -fdata-sections -gstrict-dwarf -Wall -nostartfiles -static -Wl,-T"C:\Code\br\tools\build\\..\..\bin\SYSBios-elf-a15-m5gige-debug\generated/linker.cmd" -Wl,-start -lgcc -lc -lm -lrdimon -Wl,-end