I'm currently looking into integrating the patchpoint and stackmap
intrinsics into my pet project.
In their current implementation (3.4 and trunk) the code to emit the
additional section is only executed on Darwin. This is however quickly
fixed: Add a ".llvm_stackmaps"-Section for ELF in MCObjectFileInfo and
execute StackMaps::serializeToStackMapSection in X86AsmPrinter in the
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'd be grateful, if someone more knowledgeable could help me out.
elf_stackmaps.patch (1.81 KB)