Revert "x64: build a Position-Independent Executable (PIE)"

This commit is contained in:
Matthew Parlane
2015-06-14 16:06:26 +12:00
parent c981f6407e
commit f32cede086
19 changed files with 186 additions and 119 deletions

View File

@ -28,10 +28,10 @@ public:
virtual ~CodeBlock() { if (region) FreeCodeSpace(); }
// Call this before you generate any code.
void AllocCodeSpace(int size, void* hint = nullptr)
void AllocCodeSpace(int size)
{
region_size = size;
region = (u8*)AllocateExecutableMemory(region_size, hint);
region = (u8*)AllocateExecutableMemory(region_size);
T::SetCodePtr(region);
}