With the switch of playstation2 to gcc 5.3, binutils 2.26 and gdb 7.10, I was eager to give it a whirl.
A few bits remain to be fixed. First, "sys/arch/playstation2/machdep_locore.S" has comments of the form: # line +0 in the cache-management primitives that, although starting with a TAB character, confuse the preprocessor into thinking it's a "#line" directive and choking on the "+0" as being not a positive integer(!). I wrapped them in C-style comments and that seems to have satisfied it. Second, binutils for mipsel (and mipseb and aarch64) seems to need more 'mk-native' love. The architecture-specific "bfd.h" files are missing a number of processor ID macros (including MIPS_R5900 which the playstation2 has). As well, "struct bfd" is missing a number of expected fields and some macros are now functions or are defined externally. I h4XX0r3d mine up by transplanting the analogous pieces from the mips64el "bfd.h" and that worked until it got to something that was missing entirely: [...] /x/current/src/external/gpl3/binutils/dist/bfd/targets.c:935:2: note: in expansion of macro 'SELECT_VECS' SELECT_VECS, ^ <command-line>:0:44: error: 'bfd_elf32_tradbigmips_vec' undeclared here (not in a function) [...] and more like it with different widths/endianness/object-format/etc. Thanks for all the work so far. -- |/"\ John D. Baker, KN5UKS NetBSD Darwin/MacOS X |\ / jdbaker[snail]mylinuxisp[flyspeck]com OpenBSD FreeBSD | X No HTML/proprietary data in email. BSD just sits there and works! |/ \ GPGkeyID: D703 4A7E 479F 63F8 D3F4 BD99 9572 8F23 E4AD 1645
