Displaying 1 result from an estimated 1 matches for "dtrace_probe1".
Did you mean:
dtrace_probe2
2008 Mar 11
6
Bad instruction on x86_64 build on OS X with DTRACE_PROBE
...olders/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 box, cd into the
extracted dir and run make to see the failure. make foo.s will create
the generated asm.
$ gc...