[PATCH] Make *-netbsd mean ELF rather than a.out for all CPU archs

Nick Clifton nickc@redhat.com
Fri Jul 16 15:54:48 GMT 2021


Hi John,

> As discussed previously, a.out support is now quite deprecated, and in
> some cases removed, in both Binutils itself and NetBSD, so this legacy
> default makes little sense.

One problem with that - the NS32K target.  As far as I can see this target
only supports aout format NetBSD, not ELF...

Possibly NS32K support in NetBSD is entirely deprecated.  If so, then we
can add the ns32k-netbsd target to the obsolete list.  But I would like
to have you confirm this first.


> diff --git a/binutils/testsuite/lib/binutils-common.exp b/binutils/testsuite/lib/binutils-common.exp
> index 59e25df99b0..bfb8911737a 100644
> --- a/binutils/testsuite/lib/binutils-common.exp
> +++ b/binutils/testsuite/lib/binutils-common.exp
> @@ -63,9 +63,7 @@ proc is_elf_format {} {
>   	return 0
>       }
>   
> -    if { ![istarget *-*-netbsdelf*]
> -	 && (   [istarget vax-*-netbsd*]
> -	     || [istarget ns32k-*-netbsd*]) } {
> +    if { [istarget *-*-netbsdaout* } {
>   	return 0
>       }
>   

Typo.  The new line should be:

   +   if { [istarget *-*-netbsdaout*] } {

Ie with a closing square parenthesis.

A patch with the typo corrected and NS32K added to the obsolete list in config.bfd
is approved, provided that you can confirm that the NS32K is no longer supported.

Cheers
   Nick



More information about the Binutils mailing list