blob: 9b62e26d1bc7d77ab3225f1eb38f273a7de23df3 [file] [log] [blame] [raw]
Add __aeabi_lasr and __aeabi_llsr implementations that may be called from
gcc(1) compiled codes.
diff -ru --exclude-from freebsd-src-diff-exclude-names /usr/src/sys/libkern/ashrdi3.c freebsd-11.1/sys/libkern/ashrdi3.c
--- /usr/src/sys/libkern/ashrdi3.c 2017-07-21 07:42:05.000000000 +0800
+++ freebsd-11.1/sys/libkern/ashrdi3.c 2019-12-21 13:50:53.643719564 +0800
@@ -68,3 +68,6 @@
}
return (aa.q);
}
+#ifdef __ARM_EABI__
+__strong_reference(__ashrdi3, __aeabi_lasr);
+#endif
diff -ru --exclude-from freebsd-src-diff-exclude-names /usr/src/sys/libkern/lshrdi3.c freebsd-11.1/sys/libkern/lshrdi3.c
--- /usr/src/sys/libkern/lshrdi3.c 2017-07-21 07:42:05.000000000 +0800
+++ freebsd-11.1/sys/libkern/lshrdi3.c 2019-12-21 13:49:29.877352468 +0800
@@ -58,3 +58,6 @@
}
return (aa.q);
}
+#ifdef __ARM_EABI__
+__strong_reference(__lshrdi3, __aeabi_llsr);
+#endif