public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] Add support for x86_64-*-netbsd* target
@ 2001-12-30 13:11 Jason R Thorpe
  2002-01-03 17:15 ` Jason R Thorpe
  2002-01-04  0:15 ` Andreas Jaeger
  0 siblings, 2 replies; 12+ messages in thread
From: Jason R Thorpe @ 2001-12-30 13:11 UTC (permalink / raw)
  To: binutils

[-- Attachment #1: Type: text/plain, Size: 695 bytes --]

The following patch adds support for a x86_64-*-netbsd* target.


	[ for bfd/ChangeLog ]
2001-12-29  Jason Thorpe  <thorpej@wasabisystems.com>

	* config.bfd (x86_64-*-netbsd*): New target.
	* configure.in (x86_64-*-netbsd*): Set COREFILE
	to netbsd-core.lo.
	* configure: Regenerated.


	[ for gas/ChangeLog ]
2001-12-29  Jason Thorpe  <thorpej@wasabisystems.com>

	* configure.in (i386-*-netbsdelf*): Collapse target into...
	(i386-*-netbsd*): ...this.  Add support for x86-64.
	* configure: Regenerated.


	[ for ld/ChangeLog ]
2001-12-29  Jason Thorpe  <thorpej@wasabisystems.com>

	* configure.tgt (x86_64-*-netbsd*): New target.

-- 
        -- Jason R. Thorpe <thorpej@wasabisystems.com>

[-- Attachment #2: patch7 --]
[-- Type: text/plain, Size: 3470 bytes --]

Index: bfd/config.bfd
===================================================================
RCS file: /cvs/src/src/bfd/config.bfd,v
retrieving revision 1.78
diff -c -r1.78 config.bfd
*** config.bfd	2001/12/20 05:38:52	1.78
--- config.bfd	2001/12/29 20:16:51
***************
*** 398,403 ****
--- 398,407 ----
      targ_defvec=bfd_elf64_x86_64_vec
      targ_selvecs="bfd_elf32_i386_vec i386coff_vec bfd_efi_app_ia32_vec"
      ;;
+   x86_64-*-netbsd*)
+     targ_defvec=bfd_elf64_x86_64_vec
+     targ_selvecs="bfd_elf32_i386_vec i386netbsd_vec i386coff_vec bfd_efi_app_ia32_vec"
+     ;;
    x86_64-*-linux-gnu*)
      targ_defvec=bfd_elf64_x86_64_vec
      targ_selvecs="bfd_elf32_i386_vec i386linux_vec bfd_efi_app_ia32_vec"
Index: bfd/configure.in
===================================================================
RCS file: /cvs/src/src/bfd/configure.in,v
retrieving revision 1.75
diff -c -r1.75 configure.in
*** configure.in	2001/12/20 03:18:23	1.75
--- configure.in	2001/12/29 20:17:09
***************
*** 356,361 ****
--- 356,362 ----
  	COREFILE=trad-core.lo
  	TRAD_HEADER='"hosts/vaxbsd.h"'
  	;;
+   x86_64-*-netbsd*)	COREFILE=netbsd-core.lo ;;
    esac
  
    case "$COREFILE" in
Index: gas/configure.in
===================================================================
RCS file: /cvs/src/src/gas/configure.in,v
retrieving revision 1.89
diff -c -r1.89 configure.in
*** configure.in	2001/12/20 05:39:36	1.89
--- configure.in	2001/12/29 20:17:25
***************
*** 246,253 ****
        i386-*-beoself* | i386-*-beos*) fmt=elf bfd_gas=yes ;;
        i386-*-bsd*)          fmt=aout em=386bsd ;;
        i386-*-netbsd0.8)     fmt=aout em=386bsd ;;
!       i386-*-netbsdelf*)    fmt=elf em=nbsd bfd_gas=yes ;;
!       i386-*-netbsd*)       fmt=aout em=nbsd bfd_gas=yes;;
        i386-*-openbsd*)      fmt=aout em=nbsd bfd_gas=yes;;
        i386-*-linux*aout* | i386-*-linux*oldld)   fmt=aout em=linux ;;
        i386-*-linux*coff*)   fmt=coff em=linux ;;
--- 246,261 ----
        i386-*-beoself* | i386-*-beos*) fmt=elf bfd_gas=yes ;;
        i386-*-bsd*)          fmt=aout em=386bsd ;;
        i386-*-netbsd0.8)     fmt=aout em=386bsd ;;
!       i386-*-netbsd*)       em=nbsd bfd_gas=yes
! 			    case ${cpu} in
! 			      x86_64)	fmt=elf ;;
! 			      *)	case ${os} in
! 					  *elf*) fmt=elf ;;
! 					  *)     fmt=aout ;;
! 					esac
! 					;;
! 			    esac
! 			    ;;
        i386-*-openbsd*)      fmt=aout em=nbsd bfd_gas=yes;;
        i386-*-linux*aout* | i386-*-linux*oldld)   fmt=aout em=linux ;;
        i386-*-linux*coff*)   fmt=coff em=linux ;;
Index: ld/configure.tgt
===================================================================
RCS file: /cvs/src/src/ld/configure.tgt,v
retrieving revision 1.74
diff -c -r1.74 configure.tgt
*** configure.tgt	2001/12/20 05:40:08	1.74
--- configure.tgt	2001/12/29 20:17:31
***************
*** 159,164 ****
--- 159,176 ----
  i[3456]86-*-netbsd*)	targ_emul=i386nbsd
  			targ_extra_emuls=elf_i386
  			;;
+ x86_64-*-netbsd*)	targ_emul=elf_x86_64
+ 			targ_extra_emuls="elf_i386 i386nbsd"
+ 			tdir_elf_i386=`echo ${targ_alias} | \
+ 			    sed -e 's/x86_64/i386/'`
+ 			case "${tdir_elf_i386}" in
+ 			*-netbsdelf*) ;;
+ 			*)
+ 				tdir_elf_i386=`echo ${tdir_elf_i386} | \
+ 				    sed -e 's/netbsd/netbsdelf/'`
+ 				;;
+ 			esac
+ 			;;
  i[3456]86-*-netware)	targ_emul=i386nw ;;
  i[3456]86-*-elf*)	targ_emul=elf_i386 ;;
  i[3456]86-*-freebsdaout* | i[3456]86-*-freebsd[12].* | i[3456]86-*-freebsd[12])

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

* Re: [PATCH] Add support for x86_64-*-netbsd* target
  2001-12-30 13:11 [PATCH] Add support for x86_64-*-netbsd* target Jason R Thorpe
@ 2002-01-03 17:15 ` Jason R Thorpe
  2002-01-04  0:15 ` Andreas Jaeger
  1 sibling, 0 replies; 12+ messages in thread
From: Jason R Thorpe @ 2002-01-03 17:15 UTC (permalink / raw)
  To: binutils

On Sat, Dec 29, 2001 at 12:29:54PM -0800, Jason R Thorpe wrote:

 > The following patch adds support for a x86_64-*-netbsd* target.

...cleaning out my todo list -- still waiting for approval for:

    http://sources.redhat.com/ml/binutils/2001-12/msg00487.html

-- 
        -- Jason R. Thorpe <thorpej@wasabisystems.com>

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

* Re: [PATCH] Add support for x86_64-*-netbsd* target
  2001-12-30 13:11 [PATCH] Add support for x86_64-*-netbsd* target Jason R Thorpe
  2002-01-03 17:15 ` Jason R Thorpe
@ 2002-01-04  0:15 ` Andreas Jaeger
  2002-01-04  6:02   ` DJ Delorie
  2002-01-04  9:35   ` Jason R Thorpe
  1 sibling, 2 replies; 12+ messages in thread
From: Andreas Jaeger @ 2002-01-04  0:15 UTC (permalink / raw)
  To: Jason R Thorpe; +Cc: binutils

Jason R Thorpe <thorpej@wasabisystems.com> writes:

> The following patch adds support for a x86_64-*-netbsd* target.
>
>
> 	[ for bfd/ChangeLog ]
> 2001-12-29  Jason Thorpe  <thorpej@wasabisystems.com>
>
> 	* config.bfd (x86_64-*-netbsd*): New target.
> 	* configure.in (x86_64-*-netbsd*): Set COREFILE
> 	to netbsd-core.lo.
> 	* configure: Regenerated.
>
>
> 	[ for gas/ChangeLog ]
> 2001-12-29  Jason Thorpe  <thorpej@wasabisystems.com>
>
> 	* configure.in (i386-*-netbsdelf*): Collapse target into...
> 	(i386-*-netbsd*): ...this.  Add support for x86-64.
> 	* configure: Regenerated.
>
>
> 	[ for ld/ChangeLog ]
> 2001-12-29  Jason Thorpe  <thorpej@wasabisystems.com>
>
> 	* configure.tgt (x86_64-*-netbsd*): New target.

I looked over them as x86-64 maintainer I looked over them and they're
fine.

But I fear that the configure part is "outside of the immediate domain
that" I maintain (see binutils/MAINTAINERS) and I can't give a formal
approval.  But I'll volunteer to commit this if somebody else oks it
since you don't have CVS access AFAIK.

Andreas
-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj

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

* Re: [PATCH] Add support for x86_64-*-netbsd* target
  2002-01-04  0:15 ` Andreas Jaeger
@ 2002-01-04  6:02   ` DJ Delorie
  2002-01-04  6:17     ` Andreas Jaeger
  2002-01-04  9:15     ` Andrew Cagney
  2002-01-04  9:35   ` Jason R Thorpe
  1 sibling, 2 replies; 12+ messages in thread
From: DJ Delorie @ 2002-01-04  6:02 UTC (permalink / raw)
  To: aj; +Cc: thorpej, binutils


> I looked over them as x86-64 maintainer I looked over them and they're
> fine.
> 
> But I fear that the configure part is "outside of the immediate domain
> that" I maintain (see binutils/MAINTAINERS) and I can't give a formal
> approval.  But I'll volunteer to commit this if somebody else oks it
> since you don't have CVS access AFAIK.

For gcc, a target maintainer also maintains the target-specific code
in the configury.  I see no reason to do it differently here.

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

* Re: [PATCH] Add support for x86_64-*-netbsd* target
  2002-01-04  6:02   ` DJ Delorie
@ 2002-01-04  6:17     ` Andreas Jaeger
  2002-01-04  6:28       ` DJ Delorie
  2002-01-04  9:15     ` Andrew Cagney
  1 sibling, 1 reply; 12+ messages in thread
From: Andreas Jaeger @ 2002-01-04  6:17 UTC (permalink / raw)
  To: DJ Delorie; +Cc: thorpej, binutils

DJ Delorie <dj@delorie.com> writes:

>> I looked over them as x86-64 maintainer I looked over them and they're
>> fine.
>> 
>> But I fear that the configure part is "outside of the immediate domain
>> that" I maintain (see binutils/MAINTAINERS) and I can't give a formal
>> approval.  But I'll volunteer to commit this if somebody else oks it
>> since you don't have CVS access AFAIK.
>
> For gcc, a target maintainer also maintains the target-specific code
> in the configury.  I see no reason to do it differently here.

I don't remember that it was discussed here and therefore I'm a bit
reluctant.

Do you agree that I can check in this particular patch?

Andreas
-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj

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

* Re: [PATCH] Add support for x86_64-*-netbsd* target
  2002-01-04  6:17     ` Andreas Jaeger
@ 2002-01-04  6:28       ` DJ Delorie
  2002-01-04  7:53         ` Andreas Jaeger
  0 siblings, 1 reply; 12+ messages in thread
From: DJ Delorie @ 2002-01-04  6:28 UTC (permalink / raw)
  To: aj; +Cc: thorpej, binutils


> I don't remember that it was discussed here and therefore I'm a bit
> reluctant.

Perhaps it wasn't, I was just making a suggestion.

> Do you agree that I can check in this particular patch?

I see nothing wrong with that patch outside the x86-64 realm.  Go
ahead and check it in if you like the x86-64 bits.

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

* Re: [PATCH] Add support for x86_64-*-netbsd* target
  2002-01-04  6:28       ` DJ Delorie
@ 2002-01-04  7:53         ` Andreas Jaeger
  0 siblings, 0 replies; 12+ messages in thread
From: Andreas Jaeger @ 2002-01-04  7:53 UTC (permalink / raw)
  To: DJ Delorie; +Cc: thorpej, binutils

DJ Delorie <dj@delorie.com> writes:

>> I don't remember that it was discussed here and therefore I'm a bit
>> reluctant.
>
> Perhaps it wasn't, I was just making a suggestion.
>
>> Do you agree that I can check in this particular patch?
>
> I see nothing wrong with that patch outside the x86-64 realm.  Go
> ahead and check it in if you like the x86-64 bits.

Done.

Thanks,
Andreas
-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj

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

* Re: [PATCH] Add support for x86_64-*-netbsd* target
  2002-01-04  6:02   ` DJ Delorie
  2002-01-04  6:17     ` Andreas Jaeger
@ 2002-01-04  9:15     ` Andrew Cagney
  1 sibling, 0 replies; 12+ messages in thread
From: Andrew Cagney @ 2002-01-04  9:15 UTC (permalink / raw)
  To: DJ Delorie; +Cc: aj, thorpej, binutils

> I looked over them as x86-64 maintainer I looked over them and they're
>> fine.
>> 
>> But I fear that the configure part is "outside of the immediate domain
>> that" I maintain (see binutils/MAINTAINERS) and I can't give a formal
>> approval.  But I'll volunteer to commit this if somebody else oks it
>> since you don't have CVS access AFAIK.
> 
> 
> For gcc, a target maintainer also maintains the target-specific code
> in the configury.  I see no reason to do it differently here.


Well, for GDB.  There is explicitly _no_ maintainer - anyone can mess 
around with the configury (provided they are brave enough).  The 
rationale is that configury is so magical that, in the end, we have to 
suck it and see.  Post it, if no one objects, commit it :-)

enjoy,
Andrew

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

* Re: [PATCH] Add support for x86_64-*-netbsd* target
  2002-01-04  0:15 ` Andreas Jaeger
  2002-01-04  6:02   ` DJ Delorie
@ 2002-01-04  9:35   ` Jason R Thorpe
  2002-01-04 10:35     ` Andreas Jaeger
  1 sibling, 1 reply; 12+ messages in thread
From: Jason R Thorpe @ 2002-01-04  9:35 UTC (permalink / raw)
  To: Andreas Jaeger; +Cc: binutils

On Fri, Jan 04, 2002 at 09:07:03AM +0100, Andreas Jaeger wrote:

 > But I fear that the configure part is "outside of the immediate domain
 > that" I maintain (see binutils/MAINTAINERS) and I can't give a formal
 > approval.  But I'll volunteer to commit this if somebody else oks it
 > since you don't have CVS access AFAIK.

Actually, I got CVS access just the other day.

-- 
        -- Jason R. Thorpe <thorpej@wasabisystems.com>

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

* Re: [PATCH] Add support for x86_64-*-netbsd* target
  2002-01-04  9:35   ` Jason R Thorpe
@ 2002-01-04 10:35     ` Andreas Jaeger
  2002-01-04 10:44       ` Jason R Thorpe
  0 siblings, 1 reply; 12+ messages in thread
From: Andreas Jaeger @ 2002-01-04 10:35 UTC (permalink / raw)
  To: Jason R Thorpe; +Cc: binutils

Jason R Thorpe <thorpej@wasabisystems.com> writes:

> On Fri, Jan 04, 2002 at 09:07:03AM +0100, Andreas Jaeger wrote:
>
>  > But I fear that the configure part is "outside of the immediate domain
>  > that" I maintain (see binutils/MAINTAINERS) and I can't give a formal
>  > approval.  But I'll volunteer to commit this if somebody else oks it
>  > since you don't have CVS access AFAIK.
>
> Actually, I got CVS access just the other day.

And I've been grepping for you in binutils/MAINTAINERS under the
assumption it would list everybody - like GDB and GCC do - but it does
not list any write after approvals :-(

Ok, next time you can add it yourself - or if I screwed up in the
commit, please fix it ;-)

Andreas
-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj

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

* Re: [PATCH] Add support for x86_64-*-netbsd* target
  2002-01-04 10:35     ` Andreas Jaeger
@ 2002-01-04 10:44       ` Jason R Thorpe
  2002-01-04 10:52         ` Jason R Thorpe
  0 siblings, 1 reply; 12+ messages in thread
From: Jason R Thorpe @ 2002-01-04 10:44 UTC (permalink / raw)
  To: Andreas Jaeger; +Cc: binutils

On Fri, Jan 04, 2002 at 07:16:58PM +0100, Andreas Jaeger wrote:

 > And I've been grepping for you in binutils/MAINTAINERS under the
 > assumption it would list everybody - like GDB and GCC do - but it does
 > not list any write after approvals :-(

Yah, I just haven't had a chance to add myself yet...

 > Ok, next time you can add it yourself - or if I screwed up in the
 > commit, please fix it ;-)

No sweat.

-- 
        -- Jason R. Thorpe <thorpej@wasabisystems.com>

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

* Re: [PATCH] Add support for x86_64-*-netbsd* target
  2002-01-04 10:44       ` Jason R Thorpe
@ 2002-01-04 10:52         ` Jason R Thorpe
  0 siblings, 0 replies; 12+ messages in thread
From: Jason R Thorpe @ 2002-01-04 10:52 UTC (permalink / raw)
  To: Andreas Jaeger, binutils

On Fri, Jan 04, 2002 at 10:44:13AM -0800, Jason R Thorpe wrote:

 > Yah, I just haven't had a chance to add myself yet...

Oh, I see now  ...  "the list is too large to actually include".  Heh,
oops! :-)

-- 
        -- Jason R. Thorpe <thorpej@wasabisystems.com>

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

end of thread, other threads:[~2002-01-04 18:52 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-12-30 13:11 [PATCH] Add support for x86_64-*-netbsd* target Jason R Thorpe
2002-01-03 17:15 ` Jason R Thorpe
2002-01-04  0:15 ` Andreas Jaeger
2002-01-04  6:02   ` DJ Delorie
2002-01-04  6:17     ` Andreas Jaeger
2002-01-04  6:28       ` DJ Delorie
2002-01-04  7:53         ` Andreas Jaeger
2002-01-04  9:15     ` Andrew Cagney
2002-01-04  9:35   ` Jason R Thorpe
2002-01-04 10:35     ` Andreas Jaeger
2002-01-04 10:44       ` Jason R Thorpe
2002-01-04 10:52         ` Jason R Thorpe

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).