Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

module NIDs are invalid #8

Open
173210 opened this issue Aug 9, 2015 · 0 comments
Open

module NIDs are invalid #8

173210 opened this issue Aug 9, 2015 · 0 comments

Comments

@173210
Copy link
Member

173210 commented Aug 9, 2015

We don't have module NIDs except SceLibMonoBridge one. We must add other NIDs.
As you can see in the source code of psp2-fixup and probably in Yifan's specifications, those NIDs are included in binaries, so it should be possible to get them.
https://github.com/psp2sdk/tools/blob/master/psp2-fixup/elf_psp2.h#L41

typedef struct {
    uint16_t size;
    uint16_t ver;
    uint16_t flags;
    uint16_t funcNum;
    uint16_t varNum;
    uint16_t unkNum;
    uint32_t unused0;
    uint32_t nid; // <- This
    uint32_t name;
    uint32_t unused1;
    uint32_t funcNids;
    uint32_t funcStubs;
    uint32_t varNids;
    uint32_t varStubs;
    uint32_t unkNids;
    uint32_t unkStubs;
} sceLib_stub;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant