ps2dev / ps2toolchain

This program will automatically build and install a compiler and other tools used in the creation of homebrew software for the Sony PlayStation® 2 videogame system.
BSD 2-Clause "Simplified" License
239 stars 73 forks source link

[Don't merge] gcc/binutils update, clean up scripts #7

Closed uyjulian closed 9 years ago

uyjulian commented 9 years ago

This gcc/binutils update will break old code (for example, l-value assignments are used a lot in ps2sdk) Don't merge yet!

sp193 commented 9 years ago

On 5/4/2015 10:50 AM, uyjulian wrote:

This gcc/binutils update will break old code (for example, l-value assignments are used a lot in ps2sdk) Don't merge yet!


    You can view, comment on, or merge this pull request online at:

https://github.com/ps2dev/ps2toolchain/pull/7

    Commit Summary

— Reply to this email directly or view it on GitHub https://github.com/ps2dev/ps2toolchain/pull/7.

Other than that, I'm quite sure that import and export table generation will be broken too. When I got GCC 4.92 and Binutils 2.24 to support the IOP, I had to use the -fno-toplevel-reorder option to prevent bits of the import tables from being reordered. Those variables within the import and export tables that are tagged with the "unused" attribute had to be changed to "used", in order to ensure that GCC will not remove them.

uyjulian commented 9 years ago

I'll fix the old code in ps2sdk and send a pull request to there.

uyjulian commented 9 years ago

I'll close this pull request while I'm working on a GCC 5.1 patch.