]> git.sesse.net Git - ffmpeg/commitdiff
Merge commit '6a1ea4ec932f4fc9fdc00ec51ee070b298ddb35f'
authorJames Almer <jamrial@gmail.com>
Tue, 4 Apr 2017 19:04:29 +0000 (16:04 -0300)
committerJames Almer <jamrial@gmail.com>
Tue, 4 Apr 2017 19:04:29 +0000 (16:04 -0300)
* commit '6a1ea4ec932f4fc9fdc00ec51ee070b298ddb35f':
  arm: warn/error on movrelx usage problematic with PIC on ELF

Merged-by: James Almer <jamrial@gmail.com>
1  2 
libavutil/arm/asm.S

diff --combined libavutil/arm/asm.S
index f4882899ee568ca5abfd52a911a556ff054c6e4e,a791e80c57d9c00d1ca84aa130033ebef408b24e..7d33a64fac38edb4d2dd2755f2128367796888e8
@@@ -1,20 -1,20 +1,20 @@@
  /*
   * Copyright (c) 2008 Mans Rullgard <mans@mansr.com>
   *
 - * This file is part of Libav.
 + * This file is part of FFmpeg.
   *
 - * Libav is free software; you can redistribute it and/or
 + * FFmpeg is free software; you can redistribute it and/or
   * modify it under the terms of the GNU Lesser General Public
   * License as published by the Free Software Foundation; either
   * version 2.1 of the License, or (at your option) any later version.
   *
 - * Libav is distributed in the hope that it will be useful,
 + * FFmpeg is distributed in the hope that it will be useful,
   * but WITHOUT ANY WARRANTY; without even the implied warranty of
   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   * Lesser General Public License for more details.
   *
   * You should have received a copy of the GNU Lesser General Public
 - * License along with Libav; if not, write to the Free Software
 + * License along with FFmpeg; if not, write to the Free Software
   * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
   */
  
@@@ -184,6 -184,15 +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