How to find an address of specific data section allocated by lljit?

I’m trying to use stackmaps in my jit project. As the documentation says, I could find a pointer to a stackmap with section allocation callback (Stack maps and patch points in LLVM — LLVM 17.0.0git documentation). But I haven’t found how I could register such callback in LLJIT.

Finally, I was able to do this myself with ObjectLinkingLayer Plugin by adding a new pass to PrePrunePasses list.