[llvm-dev] Allocating shadow tables at the bottom of memory on Linux.

Carter Cheng via llvm-dev llvm-dev at lists.llvm.org
Fri Jul 5 01:05:19 PDT 2019


Hello,

I have been working on a llvm instrumentation pass as an exercise to get up
to speed on how llvm operates. I am curious about what the best way would
be to create a shadow table at a fixed address in low memory starting at
0x10000 and extending upwards. I am unclear about the correct approach from
looking at the DataFlowSanitizer since getOrInsertGlobal seems to be used
on a limited number of times in runModule primarily to allocate thread
local storage and I am uncertain how the code ensures that the runtime
metadata doesnt get overwritten by alloca calls for the stack.

Thanks in advance,

Carter.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20190705/c558b585/attachment.html>


More information about the llvm-dev mailing list