obliteration icon indicating copy to clipboard operation
obliteration copied to clipboard

Find out the meaning of OS specific flags on ELF program

Open ultimaweapon opened this issue 2 years ago • 5 comments

[I] Module libSceAjm is mapped to /system/common/lib/libSceAjm.sprx.
[I] Image type    : ELF
[I] Module name   : libSceAjm
[I] Major version : 1
[I] Minor version : 1
[I] Needed module : libSceLibcInternal v1.1
[I] Needed module : libkernel v1.1
[I] Memory address: 0x00000257cd1e0000:0x00000257cd1ec000
[I] Program 0 is mapped to 0x00000257cd1e0000:0x00000257cd1e4000 with EXECUTE | READ | 0x8300000.
[I] Program 1 is mapped to 0x00000257cd1e4000:0x00000257cd1e8000 with READ.
[I] Program 2 is mapped to 0x00000257cd1e8000:0x00000257cd1ec000 with WRITE | READ | 0x8100000.
...
[I] Module libScePlayGo is mapped to /system/common/lib/libScePlayGo.sprx.
[I] Image type    : ELF
[I] Module name   : libScePlayGo
[I] Major version : 1
[I] Minor version : 0
[I] Needed module : libSceLibcInternal v1.1
[I] Needed module : libSceIpmi v1.1
[I] Needed module : libkernel v1.1
[I] Memory address: 0x00000257cf2c0000:0x00000257cf2cc000
[I] Program 0 is mapped to 0x00000257cf2c0000:0x00000257cf2c4000 with EXECUTE | READ | 0x8500000.
[I] Program 1 is mapped to 0x00000257cf2c4000:0x00000257cf2c8000 with READ.
[I] Program 2 is mapped to 0x00000257cf2c8000:0x00000257cf2cc000 with WRITE | READ | 0x8200000.
...
[I] Module libSceErrorDialog is mapped to /system/common/lib/libSceErrorDialog.sprx.
[I] Image type    : ELF
[I] Module name   : libSceErrorDialog
[I] Major version : 1
[I] Minor version : 1
[I] Needed module : libSceIpmi v1.1
[I] Needed module : libSceLibcInternal v1.1
[I] Needed module : libkernel v1.1
[I] Memory address: 0x00000257d0990000:0x00000257d09a0000
[I] Program 0 is mapped to 0x00000257d0990000:0x00000257d0994000 with EXECUTE | READ | 0x8100000.
[I] Program 1 is mapped to 0x00000257d0994000:0x00000257d0998000 with READ.
[I] Program 2 is mapped to 0x00000257d0998000:0x00000257d09a0000 with WRITE | READ | 0x8000000.

https://github.com/freebsd/freebsd-src/blob/release/9.0.0/sys/sys/elf_common.h#L345

ultimaweapon avatar Jun 03 '23 11:06 ultimaweapon

@red-prig do you have any ideas for this?

ultimaweapon avatar Nov 10 '23 16:11 ultimaweapon

@red-prig do you have any ideas for this?

Here are all the constants known to me: https://github.com/red-prig/fpPS4/blob/kern/sys/elf64.pas

red-prig avatar Nov 10 '23 23:11 red-prig

Do you need to explain what some of them do? or did you mean something else?

red-prig avatar Nov 10 '23 23:11 red-prig

If you are talking about constants like 0x8300000, then this is SELF_PROPS_* I don’t remember where I got the specific source, but here https://github.com/flatz/pkg_pfs_tool/tree/main/src there is also structure data of “self”

red-prig avatar Nov 10 '23 23:11 red-prig

Yeah I mean 0x8300000, sorry for not clarifying.

ultimaweapon avatar Nov 11 '23 03:11 ultimaweapon