Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 151139 - Small PS2 Linux patch for binutils 2.14
Summary: Small PS2 Linux patch for binutils 2.14
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: MIPS Linux
: High enhancement (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-13 03:26 UTC by James Le Cuirot
Modified: 2008-07-06 01:12 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
56_all_binutils-2.14-ps2linux.patch (56_all_binutils-2.14-ps2linux.patch,1.39 KB, patch)
2006-10-13 03:27 UTC, James Le Cuirot
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description James Le Cuirot gentoo-dev 2006-10-13 03:26:09 UTC
binutils 2.14 has been kept around for PlayStation 2 support. Thanks for that. (-: However, I experienced problems when trying to use this version with Linux. It was generating 64-bit code and using the N32 ABI by default. The following small patch changes the defaults to 32-bit and O32 for the mips*r5900*-linux-* case. It has been well-tested. If you add this patch and bump the 2.14 patchset to 1.1, that'd be great. One less custom patchset for me to keep track of!

Please point this in the direction of vapier.
Comment 1 James Le Cuirot gentoo-dev 2006-10-13 03:27:13 UTC
Created attachment 99513 [details, diff]
56_all_binutils-2.14-ps2linux.patch
Comment 2 SpanKY gentoo-dev 2006-10-13 12:24:21 UTC
i already added this to 2.14 ...

http://sources.gentoo.org/gentoo/src/patchsets/binutils/2.14/
Comment 3 James Le Cuirot gentoo-dev 2006-10-13 13:21:25 UTC
You misunderstand, even though that big patch was for the PS2, it was never intended for Linux, only for static ELFs. Linux on the PS2 has only ever been 32-bit (lack of kernel and/or toolchain support for 64-bit, not sure exactly?) and the N32 ABI generally only works with Linux 2.6. The PS2 is stuck with Linux 2.4 for the foreseeable future. GCC would constantly complain about 32/64-bit and ABI compatibility problems before I created this extra patch. Since creating it, I have managed to successfully build things like xorg 7.0 so it definitely does the trick. (-:
Comment 4 Mark Loeser (RETIRED) gentoo-dev 2008-07-06 01:00:03 UTC
This has sat for long enough that I'm going to assume no one cares.  I have no way to test this, so if you want to work on PS2 support in Gentoo, I suggest you become part of the Gentoo Sunrise project so you can setup an overlay to share your work.

Thanks
Comment 5 James Le Cuirot gentoo-dev 2008-07-06 01:12:46 UTC
I've a lot more work on the toolchain but none of it is ready for general use. I've put that work aside now but if I pick it up again and need anything else added to the tree, I'll file a new bug.