The relocation for a probe's function address is relative to the place
it is applied to, and in a 32-bit object that is the low word, 4 bytes
into the field. So the kernel got function addresses that were 4 bytes
low and put the tracepoint of every probe site one instruction early.
Probes with a site didn't work.
Emit a RELA relocation with an addend of 4.
The offset of an is-enabled site made up for that by being 4 bytes too
high: it points at the nop that follows the call in 64-bit code, and
32-bit code has no such nop. Record the xor itself there.
dtrace -G also added 4 to the offset of each probe site when it was
given an object file that it had already processed. That hid the wrong
address in 32-bit code, and in 64-bit code it put the tracepoint on the
nop after the site. Record the offset that the first run recorded.
Reported by: llm-postcr
MFC after: 1 week