PSP: compile cleanup/fix for gprof and Windows
|Reported by:||bluddy||Owned by:||joostp|
PSP libs are now grouped together as gprof requires. Also, I check extensively to make sure libraries aren't added if they aren't required. Hopefully this version will compile in Linux, OSX and Windows toolchains. Also, I'm hoping this somehow takes care of the PSP's 'undead' flicker bug, which only appears when _end is located on an address that ends in 0x14 (LSB).
Ticket imported from: #2903175. Ticket imported from: patches/1219.