uOFW
Reverse engineered PSP kernel 6.60.
Loading...
Searching...
No Matches
Data Fields
SceLoadCoreExecFileInfo Struct Reference

#include <loadcore.h>

Data Fields

u32 unk0
 
u32 modeAttribute
 
u32 apiType
 
u32 unk12
 
SceSize execSize
 
SceSize maxAllocSize
 
SceUID decompressionMemId
 
void * fileBase
 
u32 elfType
 
void * topAddr
 
u32 entryAddr
 
u32 unk44
 
SceSize modCodeSize
 
SceSize textSize
 
SceSize dataSize
 
SceSize bssSize
 
u32 partitionId
 
u32 isKernelMod
 
u32 isDecrypted
 
u32 moduleInfoOffset
 
SceModuleInfomoduleInfo
 
u32 isCompressed
 
u16 modInfoAttribute
 
u16 execAttribute
 
SceSize decSize
 
u32 isDecompressed
 
u32 isSignChecked
 
char * secureInstallId
 
SceSize overlapSize
 
void * exportsInfo
 
SceSize exportsSize
 
void * importsInfo
 
SceSize importsSize
 
void * strtabOffset
 
u8 numSegments
 
u8 padding [3]
 
u32 segmentAddr [SCE_KERNEL_MAX_MODULE_SEGMENT]
 
u32 segmentSize [SCE_KERNEL_MAX_MODULE_SEGMENT]
 
SceUID memBlockId
 
u32 segmentAlign [SCE_KERNEL_MAX_MODULE_SEGMENT]
 
u32 maxSegAlign
 

Detailed Description

This structure represents executable file information used to load the file.

Field Documentation

◆ unk0

u32 SceLoadCoreExecFileInfo::unk0

Unknown.

◆ modeAttribute

u32 SceLoadCoreExecFileInfo::modeAttribute

The mode attribute of the executable file. One of SceExecFileModeAttr.

◆ apiType

u32 SceLoadCoreExecFileInfo::apiType

The API type.

◆ unk12

u32 SceLoadCoreExecFileInfo::unk12

Unknown.

◆ execSize

SceSize SceLoadCoreExecFileInfo::execSize

The size of the executable, including the ~PSP header.

◆ maxAllocSize

SceSize SceLoadCoreExecFileInfo::maxAllocSize

The maximum size needed for the decompression.

◆ decompressionMemId

SceUID SceLoadCoreExecFileInfo::decompressionMemId

The memory ID of the decompression buffer.

◆ fileBase

void* SceLoadCoreExecFileInfo::fileBase

Pointer to the compressed module data.

◆ elfType

u32 SceLoadCoreExecFileInfo::elfType

Indicates the ELF type of the executable. One of SceExecFileElfType.

◆ topAddr

void* SceLoadCoreExecFileInfo::topAddr

The start address of the TEXT segment of the executable in memory.

◆ entryAddr

u32 SceLoadCoreExecFileInfo::entryAddr

The entry address of the module. It is the offset from the start of the TEXT segment to the program's entry point.

◆ unk44

u32 SceLoadCoreExecFileInfo::unk44

Unknown.

◆ modCodeSize

SceSize SceLoadCoreExecFileInfo::modCodeSize

The total size of the loadable segments of the executable. Contains for example the size of the .text, .data and .bss segment.

◆ textSize

SceSize SceLoadCoreExecFileInfo::textSize

The size of the TEXT segment.

◆ dataSize

SceSize SceLoadCoreExecFileInfo::dataSize

The size of the DATA segment.

◆ bssSize

SceSize SceLoadCoreExecFileInfo::bssSize

The size of the BSS segment.

◆ partitionId

u32 SceLoadCoreExecFileInfo::partitionId

The memory partition of the executable.

◆ isKernelMod

u32 SceLoadCoreExecFileInfo::isKernelMod

Indicates whether the executable is a kernel module or not. Set to 1 for kernel module, 0 for user module.

◆ isDecrypted

u32 SceLoadCoreExecFileInfo::isDecrypted

Indicates whether the executable is decrypted or not. Set to 1 if it is successfully decrypted, 0 for encrypted.

◆ moduleInfoOffset

u32 SceLoadCoreExecFileInfo::moduleInfoOffset

The offset from the start address of the TEXT segment to the SceModuleInfo section.

◆ moduleInfo

SceModuleInfo* SceLoadCoreExecFileInfo::moduleInfo

The pointer to the module's SceModuleInfo section.

◆ isCompressed

u32 SceLoadCoreExecFileInfo::isCompressed

Indicates whether the module is compressed or not. Set to 1 if it is compressed, otherwise 0.

◆ modInfoAttribute

u16 SceLoadCoreExecFileInfo::modInfoAttribute

The module's attributes. One or more of SceModuleAttribute and SceModulePrivilegeLevel.

◆ execAttribute

u16 SceLoadCoreExecFileInfo::execAttribute

The attributes of the executable file. One of SceExecFileAttr.

◆ decSize

SceSize SceLoadCoreExecFileInfo::decSize

The size of the decompressed module, including its headers.

◆ isDecompressed

u32 SceLoadCoreExecFileInfo::isDecompressed

Indicates whether the module is decompressed or not. Set to 1 for decompressed, otherwise 0.

◆ isSignChecked

u32 SceLoadCoreExecFileInfo::isSignChecked

Indicates whether the module was signChecked or not. Set to 1 for signChecked, otherwise 0. A signed module has a "mangled" executable header, in other words, the "~PSP" signature can't be seen.

◆ secureInstallId

char* SceLoadCoreExecFileInfo::secureInstallId

Unknown.

◆ overlapSize

SceSize SceLoadCoreExecFileInfo::overlapSize

The size of the GZIP compression overlap.

◆ exportsInfo

void* SceLoadCoreExecFileInfo::exportsInfo

Pointer to the first resident library entry table of the module.

◆ exportsSize

SceSize SceLoadCoreExecFileInfo::exportsSize

The size of all resident library entry tables of the module.

◆ importsInfo

void* SceLoadCoreExecFileInfo::importsInfo

Pointer to the first stub library entry table of the module.

◆ importsSize

SceSize SceLoadCoreExecFileInfo::importsSize

The size of all stub library entry tables of the module.

◆ strtabOffset

void* SceLoadCoreExecFileInfo::strtabOffset

Pointer to the string table section.

◆ numSegments

u8 SceLoadCoreExecFileInfo::numSegments

The number of segments in the executable.

◆ padding

u8 SceLoadCoreExecFileInfo::padding[3]

Reserved.

◆ segmentAddr

u32 SceLoadCoreExecFileInfo::segmentAddr[SCE_KERNEL_MAX_MODULE_SEGMENT]

An array containing the start address of each segment.

◆ segmentSize

u32 SceLoadCoreExecFileInfo::segmentSize[SCE_KERNEL_MAX_MODULE_SEGMENT]

An array containing the size of each segment.

◆ memBlockId

SceUID SceLoadCoreExecFileInfo::memBlockId

The ID of the ELF memory block containing the TEXT, DATA and BSS segment.

◆ segmentAlign

u32 SceLoadCoreExecFileInfo::segmentAlign[SCE_KERNEL_MAX_MODULE_SEGMENT]

An array containing the alignment information of each segment.

◆ maxSegAlign

u32 SceLoadCoreExecFileInfo::maxSegAlign

The largest value of the segmentAlign array.


The documentation for this struct was generated from the following file: