public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [PATCH/RFA] Add support for OpenBSD/mips64
@ 2004-10-22 21:56 Mark Kettenis
  2004-10-22 22:13 ` Eric Christopher
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Mark Kettenis @ 2004-10-22 21:56 UTC (permalink / raw)
  To: binutils

I'm working on support for OpenBSD/mips64 (OpenBSD/sgi) in GDB.  This
adds support for the platform to BFD.

OK?

Mark

Index: ChangeLog
from  Mark Kettenis  <kettenis@gnu.org>

	* config.bfd: Add mips64*-*-openbsd.

Index: config.bfd
===================================================================
RCS file: /cvs/src/src/bfd/config.bfd,v
retrieving revision 1.172
diff -u -p -r1.172 config.bfd
--- config.bfd 15 Oct 2004 05:47:11 -0000 1.172
+++ config.bfd 22 Oct 2004 21:51:06 -0000
@@ -850,6 +850,12 @@ case "${targ}" in
     targ_defvec=bfd_elf32_bigmips_vec
     targ_selvecs="bfd_elf32_littlemips_vec bfd_elf64_bigmips_vec bfd_elf64_littlemips_vec"
     ;;
+#ifdef BFD64
+  mips64*-*-openbsd*)
+    targ_defvec=bfd_elf64_tradbigmips_vec
+    targ_selvecs="bfd_elf32_ntradlittlemips_vec bfd_elf32_ntradbigmips_vec bfd_elf32_tradlittlemips_vec bfd_elf32_tradbigmips_vec bfd_elf64_tradlittlemips_vec"
+    ;;
+#endif
   mips*el-*-openbsd*)
     targ_defvec=bfd_elf32_littlemips_vec
     targ_selvecs="bfd_elf32_bigmips_vec bfd_elf64_bigmips_vec bfd_elf64_littlemips_vec ecoff_little_vec ecoff_big_vec"

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH/RFA] Add support for OpenBSD/mips64
  2004-10-22 21:56 [PATCH/RFA] Add support for OpenBSD/mips64 Mark Kettenis
@ 2004-10-22 22:13 ` Eric Christopher
  2004-10-22 22:29   ` Mark Kettenis
  2004-10-22 22:41 ` Thiemo Seufer
  2004-10-22 23:33 ` Matt Thomas
  2 siblings, 1 reply; 9+ messages in thread
From: Eric Christopher @ 2004-10-22 22:13 UTC (permalink / raw)
  To: Mark Kettenis; +Cc: binutils

On Fri, 2004-10-22 at 14:56, Mark Kettenis wrote:
> I'm working on support for OpenBSD/mips64 (OpenBSD/sgi) in GDB.  This
> adds support for the platform to BFD.
> 
> OK?

This is fine, though you could stick it inside the #ifdef for the 64-bit
linux targets as well with only a slight reorg.

-eric

-- 
Eric Christopher <echristo@redhat.com>

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH/RFA] Add support for OpenBSD/mips64
  2004-10-22 22:13 ` Eric Christopher
@ 2004-10-22 22:29   ` Mark Kettenis
  2004-10-22 22:32     ` Eric Christopher
  0 siblings, 1 reply; 9+ messages in thread
From: Mark Kettenis @ 2004-10-22 22:29 UTC (permalink / raw)
  To: echristo; +Cc: binutils

   From: Eric Christopher <echristo@redhat.com>
   Date: Fri, 22 Oct 2004 15:12:55 -0700

   On Fri, 2004-10-22 at 14:56, Mark Kettenis wrote:
   > I'm working on support for OpenBSD/mips64 (OpenBSD/sgi) in GDB.  This
   > adds support for the platform to BFD.
   > 
   > OK?

   This is fine, though you could stick it inside the #ifdef for the 64-bit
   linux targets as well with only a slight reorg.

I guess it's a matter of taste, but I'd prefer to keep the OpenBSD
MIPS entries grouped together.  So I've checked this in as is.

Thanks,

Mark

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH/RFA] Add support for OpenBSD/mips64
  2004-10-22 22:29   ` Mark Kettenis
@ 2004-10-22 22:32     ` Eric Christopher
  0 siblings, 0 replies; 9+ messages in thread
From: Eric Christopher @ 2004-10-22 22:32 UTC (permalink / raw)
  To: Mark Kettenis; +Cc: binutils

On Fri, 2004-10-22 at 15:28, Mark Kettenis wrote:
>    From: Eric Christopher <echristo@redhat.com>
>    Date: Fri, 22 Oct 2004 15:12:55 -0700
> 
>    On Fri, 2004-10-22 at 14:56, Mark Kettenis wrote:
>    > I'm working on support for OpenBSD/mips64 (OpenBSD/sgi) in GDB.  This
>    > adds support for the platform to BFD.
>    > 
>    > OK?
> 
>    This is fine, though you could stick it inside the #ifdef for the 64-bit
>    linux targets as well with only a slight reorg.
> 
> I guess it's a matter of taste, but I'd prefer to keep the OpenBSD
> MIPS entries grouped together.  So I've checked this in as is.

In my copy they'd have been together.

-eric

-- 
Eric Christopher <echristo@redhat.com>

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH/RFA] Add support for OpenBSD/mips64
  2004-10-22 21:56 [PATCH/RFA] Add support for OpenBSD/mips64 Mark Kettenis
  2004-10-22 22:13 ` Eric Christopher
@ 2004-10-22 22:41 ` Thiemo Seufer
  2004-10-23 18:03   ` Mark Kettenis
  2004-10-22 23:33 ` Matt Thomas
  2 siblings, 1 reply; 9+ messages in thread
From: Thiemo Seufer @ 2004-10-22 22:41 UTC (permalink / raw)
  To: Mark Kettenis; +Cc: binutils

Mark Kettenis wrote:
[snip]
> --- config.bfd 15 Oct 2004 05:47:11 -0000 1.172
> +++ config.bfd 22 Oct 2004 21:51:06 -0000
> @@ -850,6 +850,12 @@ case "${targ}" in
>      targ_defvec=bfd_elf32_bigmips_vec
>      targ_selvecs="bfd_elf32_littlemips_vec bfd_elf64_bigmips_vec bfd_elf64_littlemips_vec"
>      ;;
> +#ifdef BFD64
> +  mips64*-*-openbsd*)
> +    targ_defvec=bfd_elf64_tradbigmips_vec
> +    targ_selvecs="bfd_elf32_ntradlittlemips_vec bfd_elf32_ntradbigmips_vec bfd_elf32_tradlittlemips_vec bfd_elf32_tradbigmips_vec bfd_elf64_tradlittlemips_vec"
> +    ;;
> +#endif
>    mips*el-*-openbsd*)
>      targ_defvec=bfd_elf32_littlemips_vec
>      targ_selvecs="bfd_elf32_bigmips_vec bfd_elf64_bigmips_vec bfd_elf64_littlemips_vec ecoff_little_vec ecoff_big_vec"

Is the use of *trad*mips for 64bit targets intentional? It means that
o32 ELF objects from the mips64*-*-openbsd* target are incompatible to
ones from mips*-*-openbsd*.


Thiemo

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH/RFA] Add support for OpenBSD/mips64
  2004-10-22 21:56 [PATCH/RFA] Add support for OpenBSD/mips64 Mark Kettenis
  2004-10-22 22:13 ` Eric Christopher
  2004-10-22 22:41 ` Thiemo Seufer
@ 2004-10-22 23:33 ` Matt Thomas
  2004-10-23 18:07   ` Mark Kettenis
  2 siblings, 1 reply; 9+ messages in thread
From: Matt Thomas @ 2004-10-22 23:33 UTC (permalink / raw)
  To: Mark Kettenis, binutils

At 02:56 PM 10/22/2004, Mark Kettenis wrote:
>I'm working on support for OpenBSD/mips64 (OpenBSD/sgi) in GDB.  This
>adds support for the platform to BFD.
>
>OK?
>+  mips64*-*-openbsd*)

What about mips64 little endian support (for platforms like
Cobalt or NEC/arc)?  Want to add mipsel*-*-openbsd* as well.
Can you add -netbsd* matches to them as well?


-- 
Matt Thomas                     email: matt@3am-software.com
3am Software Foundry              www: http://3am-software.com/bio/matt/
Cupertino, CA              disclaimer: I avow all knowledge of this message.


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH/RFA] Add support for OpenBSD/mips64
  2004-10-22 22:41 ` Thiemo Seufer
@ 2004-10-23 18:03   ` Mark Kettenis
  2004-10-23 18:42     ` Thiemo Seufer
  0 siblings, 1 reply; 9+ messages in thread
From: Mark Kettenis @ 2004-10-23 18:03 UTC (permalink / raw)
  To: ica2_ts; +Cc: binutils

   Date: Sat, 23 Oct 2004 00:41:42 +0200
   From: Thiemo Seufer <ica2_ts@csv.ica.uni-stuttgart.de>

   Is the use of *trad*mips for 64bit targets intentional? It means that
   o32 ELF objects from the mips64*-*-openbsd* target are incompatible to
   ones from mips*-*-openbsd*.

[Putting my OpenBSD hat on]

Quite so.  OpenBSD/sgi is a new fully 64-bit platform as far as
OpenBSD is concerned, which currently is the only member of the
OpenBSD/mips64 family.  Currently is runs on the SGI O2, although
support for the SGI Origin200 is being worked on.

In the past we had OpenBSD/arc and OpenBSD/pmax running on hardware
using MIPS CPU's.  I believe both were little-endian.  Support for
these platforms has been dropped several years ago, and as far as
we're concerned, they're completely disjoint from OpenBSD/sgi.

That said, the remaining mips*-*-openbsd* entries in config.bfd can
probably be dropped, although they might still be useful for people
playing around with the old OpenBSD/pmax.

Mark

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH/RFA] Add support for OpenBSD/mips64
  2004-10-22 23:33 ` Matt Thomas
@ 2004-10-23 18:07   ` Mark Kettenis
  0 siblings, 0 replies; 9+ messages in thread
From: Mark Kettenis @ 2004-10-23 18:07 UTC (permalink / raw)
  To: matt; +Cc: binutils

   Date: Fri, 22 Oct 2004 16:33:32 -0700
   From: Matt Thomas <matt@3am-software.com>

   At 02:56 PM 10/22/2004, Mark Kettenis wrote:
   >I'm working on support for OpenBSD/mips64 (OpenBSD/sgi) in GDB.  This
   >adds support for the platform to BFD.
   >
   >OK?
   >+  mips64*-*-openbsd*)

   What about mips64 little endian support (for platforms like
   Cobalt or NEC/arc)?  Want to add mipsel*-*-openbsd* as well.
   Can you add -netbsd* matches to them as well?

OpenBSD doesn't run on these platforms.  I'm not sure what the status
of NetBSD/mips64 is, but the NetBSD 2.0 RC that I've got running on my
SGI O2 is still 32-bit only.

Now if someone'd send me a Cobalt who knows what'd happen...

Mark

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH/RFA] Add support for OpenBSD/mips64
  2004-10-23 18:03   ` Mark Kettenis
@ 2004-10-23 18:42     ` Thiemo Seufer
  0 siblings, 0 replies; 9+ messages in thread
From: Thiemo Seufer @ 2004-10-23 18:42 UTC (permalink / raw)
  To: Mark Kettenis; +Cc: binutils

Mark Kettenis wrote:
>    Date: Sat, 23 Oct 2004 00:41:42 +0200
>    From: Thiemo Seufer <ica2_ts@csv.ica.uni-stuttgart.de>
> 
>    Is the use of *trad*mips for 64bit targets intentional? It means that
>    o32 ELF objects from the mips64*-*-openbsd* target are incompatible to
>    ones from mips*-*-openbsd*.
> 
> [Putting my OpenBSD hat on]
> 
> Quite so.  OpenBSD/sgi is a new fully 64-bit platform as far as
> OpenBSD is concerned, which currently is the only member of the
> OpenBSD/mips64 family.  Currently is runs on the SGI O2, although
> support for the SGI Origin200 is being worked on.

In that case, it is probably better to limit the supported bfd vectors
to n32 and n64 ABIs. Introducing a new incompatible o32-style ABI on a
pure 64bit platform doesn't make that much sense, AFAICS.


Thiemo

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2004-10-23 18:42 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-22 21:56 [PATCH/RFA] Add support for OpenBSD/mips64 Mark Kettenis
2004-10-22 22:13 ` Eric Christopher
2004-10-22 22:29   ` Mark Kettenis
2004-10-22 22:32     ` Eric Christopher
2004-10-22 22:41 ` Thiemo Seufer
2004-10-23 18:03   ` Mark Kettenis
2004-10-23 18:42     ` Thiemo Seufer
2004-10-22 23:33 ` Matt Thomas
2004-10-23 18:07   ` Mark Kettenis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).