diff options
| author | flacs <tilkax@gmail.com> | 2015-06-03 22:00:09 +0200 |
|---|---|---|
| committer | flacs <tilkax@gmail.com> | 2015-06-03 22:00:09 +0200 |
| commit | 0f7f8f87747ae825c3b5adeae35cbb66114d2ba1 (patch) | |
| tree | bd5aef3b41c174cc932ce9072c46e4071eb89c80 /Source/Core/Common/CodeBlock.h | |
| parent | 9f1505435877cf8f5abe7b66fb2717c7e39c1988 (diff) | |
| parent | 0e1c51e5b959275dad2be12f01559ce4574d2898 (diff) | |
Merge pull request #2358 from Tilka/pie
x64: build a Position-Independent Executable (PIE)
Diffstat (limited to 'Source/Core/Common/CodeBlock.h')
| -rw-r--r-- | Source/Core/Common/CodeBlock.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/Common/CodeBlock.h b/Source/Core/Common/CodeBlock.h index 18b1af60f2..c982245912 100644 --- a/Source/Core/Common/CodeBlock.h +++ b/Source/Core/Common/CodeBlock.h @@ -28,10 +28,10 @@ public: virtual ~CodeBlock() { if (region) FreeCodeSpace(); } // Call this before you generate any code. - void AllocCodeSpace(int size) + void AllocCodeSpace(int size, void* hint = nullptr) { region_size = size; - region = (u8*)AllocateExecutableMemory(region_size); + region = (u8*)AllocateExecutableMemory(region_size, hint); T::SetCodePtr(region); } |
