arm: Clear the gp register alias at the end of functions
authorMartin Storsjö <martin@martin.st>
Mon, 14 Nov 2016 10:32:20 +0000 (12:32 +0200)
committerRonald S. Bultje <rsbultje@gmail.com>
Tue, 15 Nov 2016 20:10:03 +0000 (15:10 -0500)
commit86c5a23ee5236aa0996435247a2141ac90fc491e
treec36620e5002f70a55c8611e190d5abfa1510c475
parent6409e9b6ccde39895a93f48212078e6c0872f8e7
arm: Clear the gp register alias at the end of functions

We reset .Lpic_gp to zero at the start of each function, which means
that the logic within movrelx for clearing gp when necessary will
be missed.

This fixes using movrelx in different functions with a different
helper register.

This is cherry-picked from libav commit
824e8c284054f323f854892d1b4739239ed1fdc7.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
libavutil/arm/asm.S