Change symbol visibility in library (local -> external)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi All,

I'm working on a project which uses automake and friends. 'make check'
builds the test files and executes the test programs.

I'd like to write some tests targeted at the private functions. From
nm(1), I know the symbols of interest are present in the text section,
but they are local.

Adding a configure switch might fly, but I don't know automake well.
Changing the source files ((ie, static -> non-static)) will probably
be denied.

Other binutils tools, such as objdump and readelf looked like a dead end.

Is there a way change visibility?

Jeff

$ nm --defined ./lib/my_library.so | grep my_function
0000000000033120 t my_function
$ nm -D ./lib/my_library.so | grep my_function
$
$ nm --extern-only ./lib/my_library.so | grep en_anon_server_kx
$


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux