On 2014-12-08 00:16:05 +0200, Martin Storsjö wrote:
> On Sun, 7 Dec 2014, Janne Grunau wrote:
> 
> >On 2014-11-16 18:13:36 +0200, Martin Storsjö wrote:
> >>This object file contains relocations in the text segment, when
> >>built in ARM mode.
> >>
> >>---
> >>I do realize that this will end up disabling it in shared library
> >>builds for raspberry pi, where this feature was targeted.
> >>However, if PIC code is requested, we really should honor that. This
> >>allows us to get rid of the last textrels.
> >>Alternatively, are there any other ways to disable building this code
> >>in the case where we strictly want only PIC code, not only requesting
> >>"mostly PIC" (where it is desireable, but some textrels don't block
> >>anything, like currently on the raspberry pi).
> >
> >we could also make the arm addressing relative. It would require wo
> >additional instructions but none of this branching seems to be an hot
> >path.
> 
> Would it require another free register? I've been trying to do it,
> but got to the point when it seemed that all registers are used, so
> it'd require spilling some.

yes, it would require one free register. I assumed that there would be 
at least one available since those table jumps happen at the beginning 
of the function before any calculations are done.

I'll try my luck.

Janne
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to