aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/patches/libmad-armv7-thumb-pt1.patch
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/packages/patches/libmad-armv7-thumb-pt1.patch')
-rw-r--r--gnu/packages/patches/libmad-armv7-thumb-pt1.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/gnu/packages/patches/libmad-armv7-thumb-pt1.patch b/gnu/packages/patches/libmad-armv7-thumb-pt1.patch
new file mode 100644
index 0000000000..86339ddad8
--- /dev/null
+++ b/gnu/packages/patches/libmad-armv7-thumb-pt1.patch
@@ -0,0 +1,16 @@
+Copied from Debian.
+
+From: Konstantinos Margaritis <markos@debian.org>
+Subject: use "adr" instead of "add" to make code ready for thumb2
+
+--- ./imdct_l_arm.S.orig 2010-02-25 13:25:23.000000000 +0100
++++ ./imdct_l_arm.S 2010-02-25 13:27:26.000000000 +0100
+@@ -468,7 +468,7 @@
+
+ @----
+
+- add r2, pc, #(imdct36_long_karray-.-8) @ r2 = base address of Knn array (PIC safe ?)
++ adr r2, imdct36_long_karray
+
+
+ loop: