[Ffmpeg-devel] Re: [PATCH] Fix compilation when using --disable-opts

matthieu castet castet.matthieu
Sun Apr 1 22:35:40 CEST 2007


Michael Niedermayer wrote:
> Hi

> anyway there are 3 obvious ways this code can be generated (indpendant of
> asm vs. c)
> 1. use relocations (fast execution, slow loading, 
>    wastes some possibly alot of memory)
> 2. use extra instructions (slow execution and this is speedcritical code,
>    wastes memory but less)
> 3. use a global unique address for each shared lib (fast and wastes no mem,
>    also avoids all the other PIC overhead ...)
> 
> of course 3. is not supported on linux
AFAIK, It's not really a Linux problem but the library loader problem 
(from glibc, uclibc, ...) that lets the kernel choose where to load the 
library instead of passing to mmap a good address (ie the global address).

I wonder how difficult it would to hack glibc loader and support 3.


Matthieu




More information about the ffmpeg-devel mailing list