<Wily-->
has anyone been playing with openocd on SPI on RPi?
crabbedhaloablut has quit [Remote host closed the connection]
crabbedhaloablut has joined #openocd
crabbedhaloablut has quit [Remote host closed the connection]
crabbedhaloablut has joined #openocd
crabbedhaloablut has quit [Remote host closed the connection]
crabbedhaloablut has joined #openocd
thinkfat_ has joined #openocd
thinkfat has quit [Ping timeout: 264 seconds]
sbach has quit [Read error: Connection reset by peer]
sbach has joined #openocd
tsal has quit [Ping timeout: 240 seconds]
tsal has joined #openocd
crabbedhaloablut has quit [Remote host closed the connection]
crabbedhaloablut has joined #openocd
Wily-- has quit [Quit: Konversation terminated!]
nerozero has joined #openocd
Hawk777 has quit [Quit: Leaving.]
merethan has joined #openocd
SteveMarple has quit [Remote host closed the connection]
wingsorc has quit [Ping timeout: 260 seconds]
erhankur has joined #openocd
<erhankur>
Hi Antonio, which script did you run to catch un-exported local symbols?
<PaulFertser>
Needlessly exported symbols
<PaulFertser>
I know you can build with -ffunction-sections and then link with --gc-sections and in the map file it'll list all the sections it threw out.
<PaulFertser>
Guess borneoa_ used something less time consuming than that though.
<borneoa_>
Hi
<borneoa_>
I compile openocd then run 'nm' on all the files .o to get the symbols, then a one line script to find symbols exported and not referenced
<borneoa_>
I can post the script later today
<erhankur>
Thanks @PaulFertser @borneoa_
<PaulFertser>
"my method" would miss functions that didn't get inlined so consider that an unrelated idea, not the real answer.
<borneoa_>
I tried to integrate the nm stuff on the makefile, something like 'make unused_symbols', but our build system is per sub-library, and I don't have the way to run the final script. I will try again but it's more complicated than I thought
merethan has quit [Remote host closed the connection]
merethan has joined #openocd
<erhankur>
Maybe such kind of scripts can be integrated to Jenkins stage.
<borneoa_>
There are symbols exported to complete the API, like something_read() with something_write() but only one is used out of the file that defines it. I'm not going to drop the one not used.
<borneoa_>
I have posted the script in a comment of 7167, with one improvement I have not used yet