[FFmpeg-devel] [PATCH] mipsen require compilation with -DPIC since gcc-4.3

Reinhard Tartler siretart
Sun Sep 21 18:11:16 CEST 2008


M?ns Rullg?rd <mans at mansr.com> writes:

> Luca Barbato <lu_zero at gentoo.org> writes:
>
>> M?ns Rullg?rd wrote:
>>> Those are clearly compiler/linker bugs.
>>
>> Discuss with the ABI authors...
>
> If it used to work, and now has stopped working, there has to be a bug
> somewhere.  Since FFmpeg didn't change, the bug must be in gcc.

No, it never worked.

>> If it does not impact performance (loadtime should be improved, runtime 
>> could be impaired) I think won't be a problem applying it.
>
> There is no reason for MIPS to not support textrels in shared libs.

As Thiemo points out, MIPS never supported non-PIC shared libraries.

> The mention of gcc 4.3 suggests that gcc has started doing something
> stupid, which should be reported as a bug.

what has changed is the default. Quoting Thiemo's (yet unmoderated)
mail:

> Until gcc-4.2 Linux/MIPS always used PIC code, even for executables.
> This changed with gcc-4.3, and with it the compiler default changed
> to non-PIC. As a result, -fPIC now needs to be explicitly supplied
> for shared library builds. The shared library code model remains
> the same as with gcc-4.2. (Executables get faster and smaller, but
> that's besides the point.)


-- 
Gruesse/greetings,
Reinhard Tartler, KeyID 945348A4





More information about the ffmpeg-devel mailing list