uint8_t *SectionMemoryManager::allocateDataSection(uintptr_t Size, unsigned Alignment, unsigned SectionID, bool IsReadOnly) { if (IsReadOnly) return allocateSection(RODataMem, Size, Alignment); return allocateSection(RWDataMem, Size, Alignment); }
uint8_t* PystonMemoryManager::allocateDataSection(uintptr_t Size, unsigned Alignment, unsigned SectionID, StringRef SectionName, bool IsReadOnly) { // printf("allocating data section: %ld %d %d %s %d\n", Size, Alignment, SectionID, SectionName.data(), IsReadOnly); // assert(SectionName != ".llvm_stackmaps"); if (IsReadOnly) return allocateSection(RODataMem, Size, Alignment, SectionName); return allocateSection(RWDataMem, Size, Alignment, SectionName); }
uint8_t *SectionMemoryManager::allocateCodeSection(uintptr_t Size, unsigned Alignment, unsigned SectionID) { return allocateSection(CodeMem, Size, Alignment); }
uint8_t* PystonMemoryManager::allocateCodeSection(uintptr_t Size, unsigned Alignment, unsigned SectionID, StringRef SectionName) { // printf("allocating code section: %ld %d %d %s\n", Size, Alignment, SectionID, SectionName.data()); return allocateSection(CodeMem, Size, Alignment, SectionName); }