[FFmpeg-devel] Visibility implementation
Wed Jul 30 15:56:10 CEST 2008
On Wed, 2008-07-30 at 08:16 +0200, matthieu castet wrote:
> Uoti Urpala wrote:
> > In my test compilation this patch lowered the amount of public symbols
> > in libavcodec.so that are exported for use by external programs from
> > 1100 to 378 (counted with "nm -D libavcodec.so | grep -c '^[^ ]'"). Even
> > though I didn't add HIDDEN macros to the various xxx_decoder,
> > xxx_encoder etc definitions referring to them as external hidden symbols
> > in allcodecs.o seems to be enough to prevent the linker from making them
> > publicly available in the final library.
> But your point was your method allow compiler optimisation.
> Did you see any code change with your attribute patch ?
Yes, if compiling with -fPIC.
More information about the ffmpeg-devel