summaryrefslogtreecommitdiff
path: root/lang/ocaml/patches/patch-al
diff options
context:
space:
mode:
authorjtb <jtb>2003-07-10 07:44:01 +0000
committerjtb <jtb>2003-07-10 07:44:01 +0000
commite39b920e9cd6e92dd4e451edf2ad1624614d06b1 (patch)
treefe4cbda589b9f899d44aa5d4f8305646cf6003ca /lang/ocaml/patches/patch-al
parente1b83383460a7c7cb04ab2d426a81c7e54e07862 (diff)
downloadpkgsrc-e39b920e9cd6e92dd4e451edf2ad1624614d06b1.tar.gz
* Add support for the profiler on powerpc
* Fix i386 profiling. NetBSD calls __mcount while FreeBSD calls .mcount
Diffstat (limited to 'lang/ocaml/patches/patch-al')
-rw-r--r--lang/ocaml/patches/patch-al13
1 files changed, 13 insertions, 0 deletions
diff --git a/lang/ocaml/patches/patch-al b/lang/ocaml/patches/patch-al
new file mode 100644
index 00000000000..d47223f5639
--- /dev/null
+++ b/lang/ocaml/patches/patch-al
@@ -0,0 +1,13 @@
+$NetBSD: patch-al,v 1.1 2003/07/10 07:44:02 jtb Exp $
+
+--- asmrun/i386.S.orig
++++ asmrun/i386.S
+@@ -53,7 +53,7 @@
+ #elif defined(SYS_bsd_elf)
+ #define PROFILE_CAML \
+ pushl %ebp; movl %esp, %ebp; pushl %eax; pushl %ecx; pushl %edx; \
+- call .mcount; \
++ call __mcount; \
+ popl %edx; popl %ecx; popl %eax; popl %ebp
+ #define PROFILE_C \
+ pushl %ebp; movl %esp, %ebp; call .mcount; popl %ebp