C How to make static function to be contained in .dynsym?

130 views Asked by At

Background

I'm using -finstrument-functions to trace function call in a c project.

I convert function address to function name by using dladdr. It successfully prase some address to function name, but some of them still cannot be parsed.

I've learned that ldaddr only use dynsym table which only contain none static function. static function contained in symtab.

Question

Is there any way to make static function contained by .dynsym table without changing source code ?

0

There are 0 answers