Giter Site home page Giter Site logo

ps2-packer-small's Introduction

ps2-packer-small

This modded packer doesn't create a packed ELF. Instead, it creates a raw binary file with lzma packed section only. This way, it can be embedded into any ELF (including lzma stub) with arbitrary load adddress.

Based on Nicolas "Pixel" Noble work.

Modules

Compilation will generate ps2-packer-lite, so only lzma module is supported.

Source code and legal stuff

This code is covered by GPL.

How it works

  Usage: ps2-packer [-v]  <in_elf> <out_binary>
  
  Options description:
    -v             verbose mode.
    

Examples

Packing of wLE.

./ps2-packer-lite -v BOOT-UNC.ELF payload.bin 
PS2-Packer v1.1.0 (C) 2004-2005 Nicolas "Pixel" Noble
This is free software with ABSOLUTELY NO WARRANTY.

Compressing BOOT-UNC.ELF...
Packing.
ELF PC = 002000D8
Removing 5 zeroes to section...
Loaded section: 001256E0 bytes (with 00192EA5 zeroes) based at 00200000
Section packed, from 1201883 to 363113 bytes, ratio = 69.79%
Removing 4 zeroes to section...
Loaded section: 00000004 bytes (with 00000004 zeroes) based at 004B8580
Section packed, from 0 to 15 bytes, ratio =  -inf%
All data written.
Done!
File compressed, from 1218204 to 363172 bytes, ratio = 70.19%

How to compile

Current compilation options requires libz.a and libucl.a to reside at /usr/lib/libz.a and /usr/lib/libucl.a (I do that only to statically link the zlib and ucl with the final software, so it will run everywhere) So, if it doesn't match your system, change that line into the Makefile. Afterward, a simple make should do the trick in order to compile everything, provided you have the full ps2 toolchain, with the PS2SDK variable pointing to your ps2sdk directory, and ee-gcc under your path.

Don't look at the dist target in the Makefile, it's only for me to build the various packages.

Author

Nicolas "Pixel" Noble [email protected] - http://www.nobis-crew.org and modifications by alexparrado

Original readme file

https://github.com/ps2dev/ps2-packer/blob/master/README.md

ps2-packer-small's People

Contributors

parrado avatar

Stargazers

Joshua Schulz-Andres avatar  avatar

Watchers

 avatar

Forkers

blowfish64

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.