* New toolchain for Linux/mips @ 2001-06-06 5:06 H . J . Lu 2001-06-06 6:22 ` Ralf Baechle 2001-06-06 10:44 ` Maciej W. Rozycki 0 siblings, 2 replies; 20+ messages in thread From: H . J . Lu @ 2001-06-06 5:06 UTC (permalink / raw) To: linux-mips I have a new toolchain for Linux/mips, which consists of gcc 2.96 and glibc 2.2 from RedHat 7.1 as well as my current binutils. I have used it to compile RedHat 7.1 to Linux/mipsel. I have built all RedHat 7.1 rpms necessary, except for X related, to boot up RedHat 7.1 on Linux/mipsel: # telnet xxxx ..... Escape character is '^]'. Red Hat Linux release 7.1 (Seawolf) Kernel 2.4.3 on a mips login: My toolchain should be as capable as the x86 version in RedHat 7.1. But I do have 2 issues: 1. I got quite a few C++ exception execution failures from "make check" in gcc 2.96. But I got more C++ exception execution failures on IRIX 6.5. I guess the bugs are in gcc and/or binutils. 2. gdb in RedHat 7.1 has yet to be ported to mips. Without a working gdb, it is very hard to fix 1. I'd like to fold back my mips changes to gcc, glibc and binutils. Before I submit my changes, I'd like to get them checked out by the Linux/mips experts and users, especially on big endian mips. It will also be nice to have a working gdb and reliable C++ exception. Is there anyone interested in my new mips toolchain? Is there anyone interested in fixing gdb and C++ exception? H.J. ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: New toolchain for Linux/mips 2001-06-06 5:06 New toolchain for Linux/mips H . J . Lu @ 2001-06-06 6:22 ` Ralf Baechle 2001-06-06 7:29 ` Geert Uytterhoeven 2001-06-06 10:44 ` Maciej W. Rozycki 1 sibling, 1 reply; 20+ messages in thread From: Ralf Baechle @ 2001-06-06 6:22 UTC (permalink / raw) To: H . J . Lu; +Cc: linux-mips On Tue, Jun 05, 2001 at 10:06:05PM -0700, H . J . Lu wrote: > My toolchain should be as capable as the x86 version in RedHat 7.1. > But I do have 2 issues: > > 1. I got quite a few C++ exception execution failures from "make check" > in gcc 2.96. But I got more C++ exception execution failures on > IRIX 6.5. I guess the bugs are in gcc and/or binutils. > 2. gdb in RedHat 7.1 has yet to be ported to mips. Without a working > gdb, it is very hard to fix 1. > > I'd like to fold back my mips changes to gcc, glibc and binutils. > Before I submit my changes, I'd like to get them checked out by the > Linux/mips experts and users, especially on big endian mips. It will > also be nice to have a working gdb and reliable C++ exception. > > Is there anyone interested in my new mips toolchain? Definately. > Is there anyone interested in fixing gdb and C++ exception? We're definately interested and are painfully aware of shortcomings in those areas. Alone the limitation of days to just 48h so far has prevented us from fixing it. Ralf ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: New toolchain for Linux/mips 2001-06-06 6:22 ` Ralf Baechle @ 2001-06-06 7:29 ` Geert Uytterhoeven 0 siblings, 0 replies; 20+ messages in thread From: Geert Uytterhoeven @ 2001-06-06 7:29 UTC (permalink / raw) To: Ralf Baechle; +Cc: H . J . Lu, linux-mips On Wed, 6 Jun 2001, Ralf Baechle wrote: > We're definately interested and are painfully aware of shortcomings in > those areas. Alone the limitation of days to just 48h so far has prevented ^^^ > us from fixing it. You're a lucky guy! Wished mine were that long, too... :-) Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven ------------- Sony Software Development Center Europe (SDCE) Geert.Uytterhoeven@sonycom.com ------------------- Sint-Stevens-Woluwestraat 55 Voice +32-2-7248626 Fax +32-2-7262686 ---------------- B-1130 Brussels, Belgium ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: New toolchain for Linux/mips 2001-06-06 5:06 New toolchain for Linux/mips H . J . Lu 2001-06-06 6:22 ` Ralf Baechle @ 2001-06-06 10:44 ` Maciej W. Rozycki 2001-06-06 14:15 ` H . J . Lu 1 sibling, 1 reply; 20+ messages in thread From: Maciej W. Rozycki @ 2001-06-06 10:44 UTC (permalink / raw) To: H . J . Lu; +Cc: linux-mips On Tue, 5 Jun 2001, H . J . Lu wrote: > 2. gdb in RedHat 7.1 has yet to be ported to mips. Without a working > gdb, it is very hard to fix 1. Gdb 5.0 works for me (and a few other people, I think). Check 'ftp://ftp.ds2.pg.gda.pl/pub/macro/SRPMS/gdb-5.0-6.src.rpm'. Most of the patches have been submitted. The only remaining one is the port of 4.17 changes from oss that needs copyright assignments from its authors. There might be a few insignificant issues remaining (I think "next" and "nexti" don't work properly), but this is the version of gdb that helped me very, very much to debug a few quirks in MIPS/Linux ld.so during glibc's 2.1.9x development stage. -- + Maciej W. Rozycki, Technical University of Gdansk, Poland + +--------------------------------------------------------------+ + e-mail: macro@ds2.pg.gda.pl, PGP key available + ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: New toolchain for Linux/mips 2001-06-06 10:44 ` Maciej W. Rozycki @ 2001-06-06 14:15 ` H . J . Lu 2001-06-06 15:47 ` Maciej W. Rozycki 0 siblings, 1 reply; 20+ messages in thread From: H . J . Lu @ 2001-06-06 14:15 UTC (permalink / raw) To: Maciej W. Rozycki; +Cc: linux-mips On Wed, Jun 06, 2001 at 12:44:04PM +0200, Maciej W. Rozycki wrote: > On Tue, 5 Jun 2001, H . J . Lu wrote: > > > 2. gdb in RedHat 7.1 has yet to be ported to mips. Without a working > > gdb, it is very hard to fix 1. > > Gdb 5.0 works for me (and a few other people, I think). Check > 'ftp://ftp.ds2.pg.gda.pl/pub/macro/SRPMS/gdb-5.0-6.src.rpm'. Most of the > patches have been submitted. The only remaining one is the port of 4.17 This is a very old gdb. Since gdb has changed a lot at the same time, if the patches haven't been installed, we may have to redo them. I'd like to see Linux/mips as a supported target in gdb. gdb in RedHat 7.1 is quite current. Also, my new toolchain uses stabs, not ecoff. It may need some work. H.J. ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: New toolchain for Linux/mips 2001-06-06 14:15 ` H . J . Lu @ 2001-06-06 15:47 ` Maciej W. Rozycki 2001-06-06 16:08 ` H . J . Lu 0 siblings, 1 reply; 20+ messages in thread From: Maciej W. Rozycki @ 2001-06-06 15:47 UTC (permalink / raw) To: H . J . Lu; +Cc: linux-mips On Wed, 6 Jun 2001, H . J . Lu wrote: > > Gdb 5.0 works for me (and a few other people, I think). Check > > 'ftp://ftp.ds2.pg.gda.pl/pub/macro/SRPMS/gdb-5.0-6.src.rpm'. Most of the > > patches have been submitted. The only remaining one is the port of 4.17 > > This is a very old gdb. Since gdb has changed a lot at the same > time, if the patches haven't been installed, we may have to redo them. If things were easy the patches would already have been installed. I submitted the ones I wrote myself a year ago -- they were current then. I believe most, if not all of them got applied. The oss one was not submitted as I had troubles finding out who were all the authors (my changes were rather cosmetic -- I tried to separate work into different patches). The patch is named "gdb-5.0-mips-linux.patch.gz" in my package. Finally I found out Dave Miller was the author of most of the patch (his name appears on a few files, but not all of them). Unfortunately, this was much, much later -- at the beginning of this year. The CVS of gdb changed meanwhile and my time constraints didn't allow me to check what needed to be updated. Therefore there was no point to bother Dave about a copyright assignment without updating the patch and making sure it'll get applied. I believe it's still the best idea to port the patch instead of starting from scratch. I've already ported it from 4.17 to 5.0 and it took no more than a few days. Porting to current shouldn't be much more difficult or time-consuming. I'd be pleased to do this work, yet I'm not sure I can afford doing it now. If you look at my spec file, there is a somewhat detailed change log, which explains the most significant changes. The "mips-linux" patch is quite small -- about 20kB and mostly adds new files, so it should be quite trivial to port. > I'd like to see Linux/mips as a supported target in gdb. gdb in RedHat > 7.1 is quite current. Also, my new toolchain uses stabs, not ecoff. > It may need some work. Since I have a current gdb snapshot handy I checked all the patches I have against it. Here are the results: 1. readline -- non-MIPS/Linux specific; a single hunk fails. Unimportant but linking against local readline statically is evil. 2. ulfc-mips -- fails for a number of hunks but already present in the current BFD; supposedly gdb shares it with binutils on sourceware. 3. gdbserver -- non-MIPS/Linux specific; applies cleanly -- I'll submit it, but it might need a semantics validity check. 4. mips-linux -- important; two hunks fail and needs a semantics validity check. 5. sim-install -- applied. 6. core-xregset -- necessary for core file analysis; one hunk fails. It might not be needed though, since I was told the generic core file handling code was to be rewritten. 7. sim-mips-clean -- applied. 8. so-lmstart -- crucial for shared library handling; fails completely -- maybe unneeded (there was a base address vs load address confusion in gdb's generic shlib handling code). 9. sign-extend -- crucial for shared library handling; fails partially. 10. mips-branch-predict -- necessary for placing breakpoints after branches; fails partially -- no idea why it wasn't applied as what is already ther is completely broken. So the success ratio is 1/4 and for two trivial patches only -- not much encouraging for me for further work, especially as what I have now works for me quite well. Feel free to look at the stuff -- I might check it as well, but I can't afford spending much time on it at the moment, sorry. Maciej -- + Maciej W. Rozycki, Technical University of Gdansk, Poland + +--------------------------------------------------------------+ + e-mail: macro@ds2.pg.gda.pl, PGP key available + ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: New toolchain for Linux/mips 2001-06-06 15:47 ` Maciej W. Rozycki @ 2001-06-06 16:08 ` H . J . Lu 2001-06-06 17:48 ` Maciej W. Rozycki 0 siblings, 1 reply; 20+ messages in thread From: H . J . Lu @ 2001-06-06 16:08 UTC (permalink / raw) To: Maciej W. Rozycki; +Cc: linux-mips On Wed, Jun 06, 2001 at 05:47:08PM +0200, Maciej W. Rozycki wrote: > > So the success ratio is 1/4 and for two trivial patches only -- not much > encouraging for me for further work, especially as what I have now works > for me quite well. Feel free to look at the stuff -- I might check it as > well, but I can't afford spending much time on it at the moment, sorry. There are many changes in gdb, especially in thread and C++ supports. We need those on mips also. I am willing to spend my time. But I need some help. I don't know much about mips :-(. I'd like to get gdb working first. Do you have time to answer some questions? Thanks. H.J. ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: New toolchain for Linux/mips 2001-06-06 16:08 ` H . J . Lu @ 2001-06-06 17:48 ` Maciej W. Rozycki 2001-06-06 18:00 ` Daniel Jacobowitz 2001-06-06 20:19 ` H . J . Lu 0 siblings, 2 replies; 20+ messages in thread From: Maciej W. Rozycki @ 2001-06-06 17:48 UTC (permalink / raw) To: H . J . Lu; +Cc: linux-mips On Wed, 6 Jun 2001, H . J . Lu wrote: > There are many changes in gdb, especially in thread and C++ supports. > We need those on mips also. I am willing to spend my time. But I need > some help. I don't know much about mips :-(. It would be nice to have at least basic C support in mainline. > I'd like to get gdb working first. Do you have time to answer some > questions? I often have time to write mails (but I don't have most of my development resources here). Feel free to ask -- I'll try to answer as I can. I haven't been into MIPS/Linux development tools for some time now, since they are mostly working for me, so my memory might be vague. I'm working on the kernel mostly these days -- my primary goal is to find out why Linux crashes hard when building binutils natively on my DECstation (the progress is at a snail speed, unfortunately). Maciej -- + Maciej W. Rozycki, Technical University of Gdansk, Poland + +--------------------------------------------------------------+ + e-mail: macro@ds2.pg.gda.pl, PGP key available + ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: New toolchain for Linux/mips 2001-06-06 17:48 ` Maciej W. Rozycki @ 2001-06-06 18:00 ` Daniel Jacobowitz 2001-06-06 18:40 ` Maciej W. Rozycki 2001-06-06 20:19 ` H . J . Lu 1 sibling, 1 reply; 20+ messages in thread From: Daniel Jacobowitz @ 2001-06-06 18:00 UTC (permalink / raw) To: Maciej W. Rozycki; +Cc: H . J . Lu, linux-mips On Wed, Jun 06, 2001 at 07:48:24PM +0200, Maciej W. Rozycki wrote: > On Wed, 6 Jun 2001, H . J . Lu wrote: > > > There are many changes in gdb, especially in thread and C++ supports. > > We need those on mips also. I am willing to spend my time. But I need > > some help. I don't know much about mips :-(. > > It would be nice to have at least basic C support in mainline. > > > I'd like to get gdb working first. Do you have time to answer some > > questions? > > I often have time to write mails (but I don't have most of my development > resources here). Feel free to ask -- I'll try to answer as I can. I > haven't been into MIPS/Linux development tools for some time now, since > they are mostly working for me, so my memory might be vague. I'm working > on the kernel mostly these days -- my primary goal is to find out why > Linux crashes hard when building binutils natively on my DECstation (the > progress is at a snail speed, unfortunately). I've actually spent this week porting the gdb CVS head to MIPS; I've got it almost entirely working now. There's one problem with SIGTRAP that I haven't quite figured out yet, and thread attach isn't quite working, and there's a kernel bug I've been repeatedly triggering that I think I just fixed. I anticipate it all being done in a couple of days - I'll post here and on the GDB list when I have it in slightly better shape. -- Daniel Jacobowitz Debian GNU/Linux Developer Monta Vista Software Debian Security Team ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: New toolchain for Linux/mips 2001-06-06 18:00 ` Daniel Jacobowitz @ 2001-06-06 18:40 ` Maciej W. Rozycki 2001-06-06 20:24 ` Daniel Jacobowitz 0 siblings, 1 reply; 20+ messages in thread From: Maciej W. Rozycki @ 2001-06-06 18:40 UTC (permalink / raw) To: Daniel Jacobowitz; +Cc: H . J . Lu, linux-mips On Wed, 6 Jun 2001, Daniel Jacobowitz wrote: > I've actually spent this week porting the gdb CVS head to MIPS; I've > got it almost entirely working now. There's one problem with SIGTRAP Make sure your kernel is flushing the icache right. > that I haven't quite figured out yet, and thread attach isn't quite > working, and there's a kernel bug I've been repeatedly triggering that > I think I just fixed. I anticipate it all being done in a couple of > days - I'll post here and on the GDB list when I have it in slightly > better shape. Great! Did you do you work from scratch -- hopefully not? -- + Maciej W. Rozycki, Technical University of Gdansk, Poland + +--------------------------------------------------------------+ + e-mail: macro@ds2.pg.gda.pl, PGP key available + ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: New toolchain for Linux/mips 2001-06-06 18:40 ` Maciej W. Rozycki @ 2001-06-06 20:24 ` Daniel Jacobowitz 2001-06-06 21:09 ` Ralf Baechle 2001-06-07 10:37 ` Maciej W. Rozycki 0 siblings, 2 replies; 20+ messages in thread From: Daniel Jacobowitz @ 2001-06-06 20:24 UTC (permalink / raw) To: Maciej W. Rozycki; +Cc: H . J . Lu, linux-mips On Wed, Jun 06, 2001 at 08:40:07PM +0200, Maciej W. Rozycki wrote: > On Wed, 6 Jun 2001, Daniel Jacobowitz wrote: > > > I've actually spent this week porting the gdb CVS head to MIPS; I've > > got it almost entirely working now. There's one problem with SIGTRAP > > Make sure your kernel is flushing the icache right. Hmm, thanks, I'll check. I don't think that's it, though. > > that I haven't quite figured out yet, and thread attach isn't quite > > working, and there's a kernel bug I've been repeatedly triggering that > > I think I just fixed. I anticipate it all being done in a couple of > > days - I'll post here and on the GDB list when I have it in slightly > > better shape. > > Great! Did you do you work from scratch -- hopefully not? Nope. It's based mostly on the same 4.17 patch from David Miller, and some bits from Ralf, all marked as assigned to the FSF (though I'm not sure if that ever actually happened); I'll straighten out copyright once I've got the whole thing done. -- Daniel Jacobowitz Debian GNU/Linux Developer Monta Vista Software Debian Security Team ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: New toolchain for Linux/mips 2001-06-06 20:24 ` Daniel Jacobowitz @ 2001-06-06 21:09 ` Ralf Baechle 2001-06-07 10:37 ` Maciej W. Rozycki 1 sibling, 0 replies; 20+ messages in thread From: Ralf Baechle @ 2001-06-06 21:09 UTC (permalink / raw) To: Daniel Jacobowitz; +Cc: Maciej W. Rozycki, H . J . Lu, linux-mips, davem On Wed, Jun 06, 2001 at 01:24:02PM -0700, Daniel Jacobowitz wrote: > Nope. It's based mostly on the same 4.17 patch from David Miller, and > some bits from Ralf, all marked as assigned to the FSF (though I'm not > sure if that ever actually happened); I'll straighten out copyright > once I've got the whole thing done. The FSF already has a copyright assignment for my GDB work however David to my knowledge never assigned his code to the FSF nor as he did this work during his internship at SGI do I know if SGI still has any rights on his work. Unfortunately by now I fear David's and my work is tangled in a way that we won't be able to distinguish who wrote what to the degree required by the FSF ... David, can you comment? Ralf ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: New toolchain for Linux/mips 2001-06-06 20:24 ` Daniel Jacobowitz 2001-06-06 21:09 ` Ralf Baechle @ 2001-06-07 10:37 ` Maciej W. Rozycki 2001-06-07 19:17 ` Daniel Jacobowitz 1 sibling, 1 reply; 20+ messages in thread From: Maciej W. Rozycki @ 2001-06-07 10:37 UTC (permalink / raw) To: Daniel Jacobowitz; +Cc: H . J . Lu, linux-mips On Wed, 6 Jun 2001, Daniel Jacobowitz wrote: > > Make sure your kernel is flushing the icache right. > > Hmm, thanks, I'll check. I don't think that's it, though. This happened to me once. Otherwise, it looks like gdb doesn't recognize a breakpoint for some reason -- possibly it places it at a wrong address. It shouldn't be difficult to debug -- you get information of the address the trap happened. > Nope. It's based mostly on the same 4.17 patch from David Miller, and > some bits from Ralf, all marked as assigned to the FSF (though I'm not > sure if that ever actually happened); I'll straighten out copyright > once I've got the whole thing done. You need to contact David, then. -- + Maciej W. Rozycki, Technical University of Gdansk, Poland + +--------------------------------------------------------------+ + e-mail: macro@ds2.pg.gda.pl, PGP key available + ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: New toolchain for Linux/mips 2001-06-07 10:37 ` Maciej W. Rozycki @ 2001-06-07 19:17 ` Daniel Jacobowitz 2001-06-07 19:35 ` Maciej W. Rozycki 0 siblings, 1 reply; 20+ messages in thread From: Daniel Jacobowitz @ 2001-06-07 19:17 UTC (permalink / raw) To: Maciej W. Rozycki; +Cc: H . J . Lu, linux-mips On Thu, Jun 07, 2001 at 12:37:27PM +0200, Maciej W. Rozycki wrote: > On Wed, 6 Jun 2001, Daniel Jacobowitz wrote: > > > > Make sure your kernel is flushing the icache right. > > > > Hmm, thanks, I'll check. I don't think that's it, though. > > This happened to me once. Otherwise, it looks like gdb doesn't recognize > a breakpoint for some reason -- possibly it places it at a wrong address. > It shouldn't be difficult to debug -- you get information of the address > the trap happened. Wouldn't you hope? No such luck. Program received signal SIGTRAP, Trace/breakpoint trap. [Switching to Thread 1024 (LWP 89)] 0x00000000 in ?? () I blame the threads handling, which I'm only about half through debugging. > > Nope. It's based mostly on the same 4.17 patch from David Miller, and > > some bits from Ralf, all marked as assigned to the FSF (though I'm not > > sure if that ever actually happened); I'll straighten out copyright > > once I've got the whole thing done. > > You need to contact David, then. Yep, I'm going to do that. -- Daniel Jacobowitz Debian GNU/Linux Developer Monta Vista Software Debian Security Team ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: New toolchain for Linux/mips 2001-06-07 19:17 ` Daniel Jacobowitz @ 2001-06-07 19:35 ` Maciej W. Rozycki 2001-06-07 19:41 ` Daniel Jacobowitz 0 siblings, 1 reply; 20+ messages in thread From: Maciej W. Rozycki @ 2001-06-07 19:35 UTC (permalink / raw) To: Daniel Jacobowitz; +Cc: H . J . Lu, linux-mips On Thu, 7 Jun 2001, Daniel Jacobowitz wrote: > > This happened to me once. Otherwise, it looks like gdb doesn't recognize > > a breakpoint for some reason -- possibly it places it at a wrong address. > > It shouldn't be difficult to debug -- you get information of the address > > the trap happened. > > Wouldn't you hope? No such luck. > > Program received signal SIGTRAP, Trace/breakpoint trap. > [Switching to Thread 1024 (LWP 89)] > 0x00000000 in ?? () Then patch your kernel to display the address. It's trivial. See do_bp() in arch/mips/kernel/traps.c. > I blame the threads handling, which I'm only about half through > debugging. Ah, threads... They might be completely non-fuctional on MIPS/Linux. I've never run threaded programs on MIPS/Linux, but such trivial users as ls appear to work. -- + Maciej W. Rozycki, Technical University of Gdansk, Poland + +--------------------------------------------------------------+ + e-mail: macro@ds2.pg.gda.pl, PGP key available + ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: New toolchain for Linux/mips 2001-06-07 19:35 ` Maciej W. Rozycki @ 2001-06-07 19:41 ` Daniel Jacobowitz 0 siblings, 0 replies; 20+ messages in thread From: Daniel Jacobowitz @ 2001-06-07 19:41 UTC (permalink / raw) To: Maciej W. Rozycki; +Cc: linux-mips On Thu, Jun 07, 2001 at 09:35:57PM +0200, Maciej W. Rozycki wrote: > On Thu, 7 Jun 2001, Daniel Jacobowitz wrote: > > > > This happened to me once. Otherwise, it looks like gdb doesn't recognize > > > a breakpoint for some reason -- possibly it places it at a wrong address. > > > It shouldn't be difficult to debug -- you get information of the address > > > the trap happened. > > > > Wouldn't you hope? No such luck. > > > > Program received signal SIGTRAP, Trace/breakpoint trap. > > [Switching to Thread 1024 (LWP 89)] > > 0x00000000 in ?? () > > Then patch your kernel to display the address. It's trivial. See > do_bp() in arch/mips/kernel/traps.c. Good idea. Thanks. > > I blame the threads handling, which I'm only about half through > > debugging. > > Ah, threads... They might be completely non-fuctional on MIPS/Linux. > I've never run threaded programs on MIPS/Linux, but such trivial users as > ls appear to work. They work, with a couple of kernel patches and a couple of library patches. I'm sorting through them right now. -- Daniel Jacobowitz Debian GNU/Linux Developer Monta Vista Software Debian Security Team ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: New toolchain for Linux/mips 2001-06-06 17:48 ` Maciej W. Rozycki 2001-06-06 18:00 ` Daniel Jacobowitz @ 2001-06-06 20:19 ` H . J . Lu 2001-06-07 10:32 ` Maciej W. Rozycki 1 sibling, 1 reply; 20+ messages in thread From: H . J . Lu @ 2001-06-06 20:19 UTC (permalink / raw) To: Maciej W. Rozycki; +Cc: linux-mips On Wed, Jun 06, 2001 at 07:48:24PM +0200, Maciej W. Rozycki wrote: > resources here). Feel free to ask -- I'll try to answer as I can. I > haven't been into MIPS/Linux development tools for some time now, since > they are mostly working for me, so my memory might be vague. I'm working As far as I can tell, all the currently available Linux/mips binutils are broken. I am working on fixing it. H.J. ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: New toolchain for Linux/mips 2001-06-06 20:19 ` H . J . Lu @ 2001-06-07 10:32 ` Maciej W. Rozycki 2001-06-07 16:28 ` H . J . Lu 0 siblings, 1 reply; 20+ messages in thread From: Maciej W. Rozycki @ 2001-06-07 10:32 UTC (permalink / raw) To: H . J . Lu; +Cc: linux-mips On Wed, 6 Jun 2001, H . J . Lu wrote: > As far as I can tell, all the currently available Linux/mips binutils > are broken. I am working on fixing it. That depends on how you define "broken". All software has bugs. What I currently use is sufficient to build working Linux 2.4.x, glibc 2.2.x as well as all programs I built up to date. I haven't tried C++, I admit. Libstdc++ of gcc 2.95.3 compiles fine, but I have not used it so far, so I have no idea if the binary works. If you know of particular problems, you are welcomed to fix them, of course. -- + Maciej W. Rozycki, Technical University of Gdansk, Poland + +--------------------------------------------------------------+ + e-mail: macro@ds2.pg.gda.pl, PGP key available + ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: New toolchain for Linux/mips 2001-06-07 10:32 ` Maciej W. Rozycki @ 2001-06-07 16:28 ` H . J . Lu 2001-06-07 17:03 ` Maciej W. Rozycki 0 siblings, 1 reply; 20+ messages in thread From: H . J . Lu @ 2001-06-07 16:28 UTC (permalink / raw) To: Maciej W. Rozycki; +Cc: linux-mips On Thu, Jun 07, 2001 at 12:32:27PM +0200, Maciej W. Rozycki wrote: > On Wed, 6 Jun 2001, H . J . Lu wrote: > > > As far as I can tell, all the currently available Linux/mips binutils > > are broken. I am working on fixing it. > > That depends on how you define "broken". All software has bugs. What I > currently use is sufficient to build working Linux 2.4.x, glibc 2.2.x as > well as all programs I built up to date. I haven't tried C++, I admit. > Libstdc++ of gcc 2.95.3 compiles fine, but I have not used it so far, so I > have no idea if the binary works. > > If you know of particular problems, you are welcomed to fix them, of > course. See my post on the binutils mailing list. I have reason to believe that it also misassembles the mips kernel with certain configuration. H.J. ^ permalink raw reply [flat|nested] 20+ messages in thread
* Re: New toolchain for Linux/mips 2001-06-07 16:28 ` H . J . Lu @ 2001-06-07 17:03 ` Maciej W. Rozycki 0 siblings, 0 replies; 20+ messages in thread From: Maciej W. Rozycki @ 2001-06-07 17:03 UTC (permalink / raw) To: H . J . Lu; +Cc: linux-mips On Thu, 7 Jun 2001, H . J . Lu wrote: > See my post on the binutils mailing list. I have reason to believe > that it also misassembles the mips kernel with certain configuration. I've seen them. Unfortunately I'm far from being a BFD expert, so it's not immediately obvious to me whether your fixes are fine or not. And I can't dig into BFD at the moment. Just make sure your changes adhere to the ELF ABI, both the generic part and the MIPS supplement. Also note I can only run-time test MIPS I, so if there is something wrong with higher ISAs, I wouldn't even notice unless I happen to study a dissassembly of affected code. The kernel crashes for me weirdly from time to time, indeed. I have a reproducible test case as well. I don't speak up on details, though, as I now have outdated binutils as well as the kernel I'm running is still 2.4.0-test12. Any conclusions will be sent to the list once collected and if relevant to current versions, of course. -- + Maciej W. Rozycki, Technical University of Gdansk, Poland + +--------------------------------------------------------------+ + e-mail: macro@ds2.pg.gda.pl, PGP key available + ^ permalink raw reply [flat|nested] 20+ messages in thread
end of thread, other threads:[~2001-06-07 19:52 UTC | newest] Thread overview: 20+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2001-06-06 5:06 New toolchain for Linux/mips H . J . Lu 2001-06-06 6:22 ` Ralf Baechle 2001-06-06 7:29 ` Geert Uytterhoeven 2001-06-06 10:44 ` Maciej W. Rozycki 2001-06-06 14:15 ` H . J . Lu 2001-06-06 15:47 ` Maciej W. Rozycki 2001-06-06 16:08 ` H . J . Lu 2001-06-06 17:48 ` Maciej W. Rozycki 2001-06-06 18:00 ` Daniel Jacobowitz 2001-06-06 18:40 ` Maciej W. Rozycki 2001-06-06 20:24 ` Daniel Jacobowitz 2001-06-06 21:09 ` Ralf Baechle 2001-06-07 10:37 ` Maciej W. Rozycki 2001-06-07 19:17 ` Daniel Jacobowitz 2001-06-07 19:35 ` Maciej W. Rozycki 2001-06-07 19:41 ` Daniel Jacobowitz 2001-06-06 20:19 ` H . J . Lu 2001-06-07 10:32 ` Maciej W. Rozycki 2001-06-07 16:28 ` H . J . Lu 2001-06-07 17:03 ` Maciej W. Rozycki
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox