Hi Andy,
The Brown Deer offline compiler, clcc calls the SDK and it seems to use the -g flag:
e-g++ -O0 -g -Wall -c -fmessage-length=0 -ffast-math -ftree-vectorize -funroll-loops -Wunused-variable -ffp-contract=fast -mlong-calls -mfp-mode=truncate -falign-loops=8 -falign-functions=8 -w -fstack-usage -fno-exceptions -U_FORTIFY_SOURCE -fno-stack-protector -I/opt/adapteva/esdk/tools/e-gnu/epiphany-elf/sys-include -fpermissive -D__coprthr_device__ -x c++ -I/usr/local/browndeer/include -D __xcl_kthr__ --include=e32pth_if_needham.h --include=opencl_lift.h --include=e32_opencl_ext.h -D __STDCL_KERNEL_VERSION__=020000 -D__COPRTHR__ -D E32_DRAM_ZEROPAGE=0x8e100000 -I/home/linaro/Work/ndfork -D __coprthr__ -S oWyBXV.cpp
execshell> cd /tmp/xclYwTdtI; e-g++ -O0 -g -Wall -c -fmessage-length=0 -ffast-math -ftree-vectorize -funroll-loops -Wunused-variable -ffp-contract=fast -mlong-calls-funr9
I create an elf file and then link it to the executable. The clnm utility seems to report the presence of symbols as well:
linaro-nano:~/Work/ndfork/bin/Debug> clnm ndfork.elf
clnm: '/home/linaro/Work/ndfork/ndfork.cl' bin [coprthr:ARMv7]
clnm: '/home/linaro/Work/ndfork/ndfork.cl' bin [coprthr:E16G Needham]
clnm: '/home/linaro/Work/ndfork/ndfork.cl' ksym k_callCount
clnm: '/home/linaro/Work/ndfork/ndfork.cl' bin [coprthr:ARMv7]
clnm: '/home/linaro/Work/ndfork/ndfork.cl' bin [coprthr:E16G Needham]
clnm: '/home/linaro/Work/ndfork/ndfork.cl' ksym k_callCount
clnm: '/home/linaro/Work/ndfork/ndfork.cl' src [<generic>]
clnm: '/home/linaro/Work/ndfork/ndfork.cl' src [<generic>]
code::blocks seems to be missing them somehow?
nick