diff options
author | James Almer <jamrial@gmail.com> | 2017-04-04 22:04:29 +0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2017-04-04 22:04:29 +0300 |
commit | d1ee6fb72945d43d55aa0e7f946a957274cd94c9 (patch) | |
tree | 8a52bd106eb2e49b795d2c59c384ecaa8e8ad649 /libavutil/arm | |
parent | b9886e569a9c5748222b4ebf5f601823e3a6aeb6 (diff) | |
parent | 6a1ea4ec932f4fc9fdc00ec51ee070b298ddb35f (diff) |
Merge commit '6a1ea4ec932f4fc9fdc00ec51ee070b298ddb35f'
* commit '6a1ea4ec932f4fc9fdc00ec51ee070b298ddb35f':
arm: warn/error on movrelx usage problematic with PIC on ELF
Merged-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavutil/arm')
-rw-r--r-- | libavutil/arm/asm.S | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libavutil/arm/asm.S b/libavutil/arm/asm.S index f4882899ee..7d33a64fac 100644 --- a/libavutil/arm/asm.S +++ b/libavutil/arm/asm.S @@ -184,6 +184,15 @@ T ldr \rd, [\rd] .endm .macro movrelx rd, val, gp + .ifc \rd,\gp + .error "movrelx needs two distinct registers" + .endif + .ifc \rd\()_\gp,r12_ + .warning "movrelx rd=\rd without explicit set gp" + .endif + .ifc \rd\()_\gp,ip_ + .warning "movrelx rd=\rd without explicit set gp" + .endif #if CONFIG_PIC && defined(__ELF__) .ifnb \gp .if .Lpic_gp |