Displaying 1 result from an estimated 1 matches for "__dtrace_probe".
2008 Mar 11
6
Bad instruction on x86_64 build on OS X with DTRACE_PROBE
...building for x86_64 with -arch x86_64 we get bad instructions
generated:
gcc -o foo -arch x86_64 foo.c
/var/folders/rV/rV1x2DafFr0R6tGG+1bbk++++TM/-Tmp-//ccnykQ1o.s:11:bad
register name `%%esi)''
Using gcc -S I can definitely see we are not generating correct code:
LCFI1:
__dtrace_probe$6_foo___probe__noargs:
nop
leal 0(%%esi), %%esi
Building with -arch i386 works, DTRACE_PROBE1, etc also seem to work
on OS X based on the building mod_trace.
I attach a simple reproducer, changing the Makefile to build with -
arch i386 works. Simply extract onto a Leopard bo...