comparison arm/asm.S @ 8507:779a9c93bf61 libavcodec

ARM: work around linker bug with movw/movt relocations in shared libs
author mru
date Tue, 30 Dec 2008 03:13:52 +0000
parents 9281a8a9387a
children 7a463923ecd1
comparison
equal deleted inserted replaced
8506:1a629032b24a 8507:779a9c93bf61
16 * You should have received a copy of the GNU Lesser General Public 16 * You should have received a copy of the GNU Lesser General Public
17 * License along with FFmpeg; if not, write to the Free Software 17 * License along with FFmpeg; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 */ 19 */
20 20
21 #include "config.h"
22
21 .macro require8, val=1 23 .macro require8, val=1
22 .eabi_attribute 24, \val 24 .eabi_attribute 24, \val
23 .endm 25 .endm
24 26
25 .macro preserve8, val=1 27 .macro preserve8, val=1
32 .endif 34 .endif
33 .type \name, %function 35 .type \name, %function
34 .func \name 36 .func \name
35 \name: 37 \name:
36 .endm 38 .endm
39
40 .macro movrel rd, val
41 #if defined(HAVE_ARMV6T2) && !defined(CONFIG_SHARED)
42 movw \rd, #:lower16:\val
43 movt \rd, #:upper16:\val
44 #else
45 ldr \rd, =\val
46 #endif
47 .endm