linkcmds symbol file with unknown symbol type '?'

Sebastian Huber sebastian.huber at embedded-brains.de
Wed Sep 6 04:57:07 UTC 2017


On 05/09/17 21:42, Jianxun Yan wrote:

> Hi,
>
> My application needs to compile linkcmds and create a symbols file. 
> Here are how I did.
>
> $ arm-rtems4.11-g++ 
> -B/home/yanjx/workspace/rtems411/arm-rtems4.11/altcycv_devkit/lib/ 
> -specs bsp_specs -qrtems -Wall -O2 -g -march=armv7-a -mthumb -mfpu=vfp 
> -mfloat-abi=softfp -mtune=cortex-a9 -I. -Invram -nodefaultlibs -o 
> o-optimize/startfiles.obj -Wl,--unresolved-symbols=ignore-all 
> -T`arm-rtems4.11-gcc --pipe 
> -B/home/yanjx/workspace/rtems411/arm-rtems4.11/altcycv_devkit/lib/ 
> -specs bsp_specs -qrtems -print-file-name=linkcmds`
>

This -Wl,--unresolved-symbols=ignore-all sounds a bit dangerous.

> $ arm-rtems4.11-nm -g -fposix o-optimize/startfiles.obj > 
> o-optimize/startfiles.nm
>
> After created the startfiles.nm file, I found there some symbols with 
> unknown type of '?'
>
> bsp_section_rodata_begin ? 00300204
>
> bsp_section_rodata_end D 00300214
>
> bsp_section_rodata_load_begin A 00300204
>
> bsp_section_rodata_load_end A 00300214
>
> bsp_section_rodata_size A 00000010
>
> bsp_section_rwbarrier_align A 00100000
>
> bsp_section_stack_begin ? 40000000
>
> bsp_section_stack_end ? 40000000
>
> ......
>
> __deregister_frame_info w
>
> __dso_handle D 00401400
>
> __exidx_end ? 00300204
>
> __exidx_start ? 00300204
>
> .....
>
> Dose anyone know what causes the problem? and how to solve it?
>

Maybe these are the ignored undefined symbols?

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.




More information about the users mailing list