[FFmpeg-devel] Visibility implementation

Måns Rullgård mans
Wed Jul 30 16:40:31 CEST 2008


Uoti Urpala wrote:
> 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.

On which architecture?  How did it compare to vanilla code without -fPIC?

-- 
M?ns Rullg?rd
mans at mansr.com




More information about the ffmpeg-devel mailing list