[PATCH] Add support for StackMap section for ELF/Linux systems

Eric Christopher echristo at gmail.com
Fri Jul 18 11:25:42 PDT 2014


On Thu, Jul 17, 2014 at 4:18 PM, Juergen Ributzka <juergen at apple.com> wrote:
> ================
> Comment at: lib/MC/MCObjectFileInfo.cpp:590
> @@ -585,1 +589,3 @@
> +                       SectionKind::getReadOnly());
> +
>  }
> ----------------
> I am not familiar with the ELF sections, but wouldn't Metadata be a better for for this section. I guess it doesn't work with it, because the JIT won't ask the client to allocate it?
>

Metadata would be more accurate, normally you'd need to make sure that
the section had the flag SHF_ALLOC to have it allocated on startup,
but..

> Lang knows more about this part of the JIT.
>

I'm not sure if the JIT loader supports that off the top of my head or
just goes section by section name. It should though.

-eric



More information about the llvm-commits mailing list