[llvm-commits] [PATCH][Review Request] Adding isReadOnlyData to SectionRef/ObjectFile interface

Kaylor, Andrew andrew.kaylor at intel.com
Fri Oct 5 14:07:04 PDT 2012


Patch by Ashok Thirumurthi.

This patch adds new functions to the SectionRef and ObjectFile interfaces to determine whether or not a section is meant to be read-only.  These functions will be used by the MCJIT RuntimeDyld to give hints to the memory manager during the object loading process in a future patch.

Currently, the functions are only implemented for ELF.  We weren't 100% certain of the proper implementation for MachO or COFF, so it seemed best to just leave a comment and return 'false' which will result in the dynamic loader continuing to behave exactly as it currently does.

-Andy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20121005/dff3b2ff/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: read-only-sections.patch
Type: application/octet-stream
Size: 7538 bytes
Desc: read-only-sections.patch
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20121005/dff3b2ff/attachment.obj>


More information about the llvm-commits mailing list