covoar symbol mismatch

Chris Johns chrisj at rtems.org
Wed May 23 05:39:06 UTC 2018


On 22/5/18 2:27 am, Joel Sherrill wrote:
> I am not sure why this is happening but this is an example of the symbol
> it is finding:
> 
> [joel at rtbf64c samples]$ i386-rtems5-nm base_sp.exe | grep -i csw
> 001237d0 r CSWTCH.1
> 001216c0 r CSWTCH.108

If you add '-vvvv' to the command line the rtemstoolkit's trace will provide
some extra output. It shows:

elf:get-syms: unresolved:0 local:1 weak:0 global:0
sparc-rtems5/c/erc32/cpukit/score/libscore.a:libscore_a-objectapimaximumclass.o at 1502270

object:load-sym: local: total 2
object:load-sym: local:        0 STB_LOCAL  STT_NOTYPE       0 0x00000000
0
object:load-sym: local:        6 STB_LOCAL  STT_OBJECT       6 0x00000000
12 CSWTCH.1

which indicates these are local symbols. I added in local symbols here and that
a mistake:

https://git.rtems.org/rtems-tools/tree/linkers/rtld-trace-buffer.ini#n87

If you remove adding the local symbols the symbol table will be what you want.

Chris


More information about the devel mailing list