[PATCH] [RuntimeDyldELF] Make GOT allocation use the stub mechanism.

Keno Fischer kfischer at college.harvard.edu
Thu Apr 2 18:51:21 PDT 2015


Hi lhames,

This is the follow-on commit to D8813, which switches the GOT from a separate section to use the stub mechanism. The primary disadvantage of this approach is that the code section will have RX permissions, while the GOT usually has RW permissions. However, until the memory manager has the capability to allocate sections sufficiently close to each other, there is not much else we can do. The other concern, both for this approach and the separate GOT section is that we need to know ahead of time how much memory will be needed, even though we only discover this information upon actually processing the relocations. The current approach is to provide an upper bound for the amount of space (both Stub and GOT) needed, though it would be good to revisit this in the future.

REPOSITORY
  rL LLVM

http://reviews.llvm.org/D8814

Files:
  lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp
  lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.h

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D8814.23196.patch
Type: text/x-patch
Size: 4666 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150403/064c56d9/attachment.bin>


More information about the llvm-commits mailing list