On Mon, 17 May 2004 04:05:51 +0200, Guido Draheim wrote:
gcc supports the universal attribute syntax, and it does now know about more symbol flavours as to their visibility. Probably you want to have "hidden". Attached are two simple test*.c files and a makefile. The final sharedlib symbol table contains only test3 after stripping. - using a linker script instead of in-source __attribute__ is left as an excercise to the reader.
Ah, thanks. I did actually try __attribute__((visibility("hidden"))) but it still left symbols in the .symtab - of course if you strip the binary as well, this disappears too.