Browse Source

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
824e8c2840.

Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
tags/n3.3
Martin Storsjö Ronald S. Bultje 8 years ago
parent
commit
86c5a23ee5
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      libavutil/arm/asm.S

+ 3
- 0
libavutil/arm/asm.S View File

@@ -77,6 +77,9 @@ ELF .section .note.GNU-stack,"",%progbits @ Mark stack as non-executable
put_pic %(.Lpic_idx - 1)
.noaltmacro
.endif
.if .Lpic_gp
.unreq gp
.endif
ELF .size \name, . - \name
FUNC .endfunc
.purgem endfunc


Loading…
Cancel
Save