Skip to content

Multiple fixes to make_fself.py. - #76

Closed
koutheir wants to merge 12 commits into
ps5-payload-dev:masterfrom
koutheir:master
Closed

koutheir wants to merge 12 commits into
ps5-payload-dev:masterfrom
koutheir:master

Conversation

@koutheir

Copy link
Copy Markdown

Multiple fixes to make_fself.py, mainly:

  • ElfError to ElfException.
  • Catch Exception, not just anything.
  • PT_SCE_RELA is a number, not a tuple.
  • Do not print ptype when it is None.
  • Ensure val is initialized with the same type.
  • Ensure correct calculation through explicit precedence.
  • Use section size to read the section, instead of the program header size.
  • etc.

@john-tornblom

Copy link
Copy Markdown
Contributor

These changes fit better in a repo with proper fake safe signing tool, this repo is just a simple example that works with static linking

@koutheir

Copy link
Copy Markdown
Author

@john-tornblom, I didn't know the tool has its own repo. Could you tell me where it is?

@john-tornblom

Copy link
Copy Markdown
Contributor

Have a look at https://github.com/EchoStretch/kstuff-lite

@koutheir

Copy link
Copy Markdown
Author

I did, and the file is nowhere to be found on either branches. I found it in the history, but it's not present currently. Does that mean it is not needed anymore? Or is it somewhere else?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants