obhq / obliteration

Experimental PS4 emulator written in Rust for Windows, macOS and Linux
https://obliteration.net
MIT License
586 stars 17 forks source link

Resolve the difference between our 'ModuleFlags' and fpPS4's 'rtld_flags' #799

Closed SuchAFuriousDeath closed 3 months ago

SuchAFuriousDeath commented 3 months ago

It seems like there are some differences between these two types, which I'm pretty sure correspond to each other. image image

red-prig commented 3 months ago

rtld_flags are not bit-accurately copied so don't pay attention to the order of the fields in the record

SuchAFuriousDeath commented 3 months ago

Oh 👀

red-prig commented 3 months ago
mainprog    0x01
textrel     0x02
        0x04
tls_done    0x08
init_scanned    0x10
on_fini_list    0x20
dag_inited  0x40
        0x80
is_system   0x100
is_new      0x200
libc_fios   0x400
jmpslots_done   0x800
not_get_proc    0x1000