symbol hiding - with gcc -fvisibility
Joshua Walker
halkun2002 at yahoo.com
Wed May 19 00:24:53 CDT 2004
Yay! Now everyone's happy! Group hug everyone!
/was a tenny bit worried about losing commercial
intrest because we simply use ELF executables.
--- Mike Hearn <mike at navi.cx> wrote:
> 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.
>
>
More information about the wine-devel
mailing list