Commit d1ee6fb7 authored by James Almer's avatar James Almer

Merge commit '6a1ea4ec'

* commit '6a1ea4ec':
  arm: warn/error on movrelx usage problematic with PIC on ELF
Merged-by: 's avatarJames Almer <jamrial@gmail.com>
parents b9886e56 6a1ea4ec
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment