[PATCH] D30709: Handle IMAGE_REL_AMD64_ADDR32NB in RuntimeDyldCOFF

Janosch via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 26 08:29:30 PST 2018


LepelTsmok added a comment.

> I think what you're trying to do just isn't unsupported at this time.

So it is supported?

> Why not just use the JIT to compile the source for the on disk object at runtime?

I will not always have the source code

> Also __ImageBase isn't supposed to be a function it's an IMAGE_DOS_HEADER that is used by the runtime loader.

I agree! But when I overload an address "no body knows" that it is a function it appears to be a normal address which could be form a variable as well.
Soo! When I use your patch this address will get called - proved by giving an address of a function.
But when I'm not using your patch, then this address won't be called.
This only happens to __ImageBase


Repository:
  rL LLVM

https://reviews.llvm.org/D30709





More information about the llvm-commits mailing list