[LLVMdev] Patchpoint and Stackmap Instrinsics on Linux/ELF
Jörg Blank
joerg.blank at 4geeks.de
Sat Dec 28 03:44:34 PST 2013
Hi Tim,
That was, in fact, the solution. Thanks.
Joerg
Am 28.12.2013 11:45, schrieb Tim Northover:
> Hi Jörg,
>
>> serializeToStackMapSection writes the information using MCStreamer,
>> which seems to work properly.
>> I'm using MCJIT with a custom memory manager to intercept the stackmap
>> datasection, but no memory is allocated for this purpose.
>
> I think the ELF MCJIT decides whether to load a section for runtime
> based on whether it has the SHF_ALLOC flag set, which your patch
> doesn't seem to set. If you're lucky that'll make everything spring to
> life.
>
> Cheers.
>
> Tim.
>
More information about the llvm-dev
mailing list