Skip to content
Snippets Groups Projects
  • John Ericson's avatar
    9fc0ae60
    Deprecate a.out support for NetBSD targets. · 9fc0ae60
    John Ericson authored
    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. `netbsdelf*` and `netbsdaout*` still work
    allowing the user to be explicit about there choice. Additionally, the
    configure script warns about the change as Nick Clifton requested.
    
    One possible concern was the status of NetBSD on NS32K, where only a.out
    was supported. But per [1] NetBSD has removed support, and if it were to
    come back, it would be with ELF. The binutils implementation is
    therefore marked obsolete, per the instructions in the last message.
    
    With that patch and this one applied, I have confirmed the following:
    
    --target=i686-unknown-netbsd
    --target=i686-unknown-netbsdelf
      builds completely
    
    --target=i686-unknown-netbsdaout
      properly fails because target is deprecated.
    
    --target=vax-unknown-netbsdaout builds completely except for gas, where
    the target is deprecated.
    
    [1]: https://mail-index.netbsd.org/tech-toolchain/2021/07/19/msg004025.html
    
    config/ChangeLog:
    
    	* picflag.m4: Simplify SHmedia NetBSD match by presuming ELF.
    
    gcc/ChangeLog:
    
    	* configure: Regenerate.
    
    libada/ChangeLog:
    
    	* configure: Regenerate.
    
    libgcc/ChangeLog:
    
    	* configure: Regenerate.
    
    libiberty/ChangeLog:
    
    	* configure: Regenerate.
    9fc0ae60
    History
    Deprecate a.out support for NetBSD targets.
    John Ericson authored
    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. `netbsdelf*` and `netbsdaout*` still work
    allowing the user to be explicit about there choice. Additionally, the
    configure script warns about the change as Nick Clifton requested.
    
    One possible concern was the status of NetBSD on NS32K, where only a.out
    was supported. But per [1] NetBSD has removed support, and if it were to
    come back, it would be with ELF. The binutils implementation is
    therefore marked obsolete, per the instructions in the last message.
    
    With that patch and this one applied, I have confirmed the following:
    
    --target=i686-unknown-netbsd
    --target=i686-unknown-netbsdelf
      builds completely
    
    --target=i686-unknown-netbsdaout
      properly fails because target is deprecated.
    
    --target=vax-unknown-netbsdaout builds completely except for gas, where
    the target is deprecated.
    
    [1]: https://mail-index.netbsd.org/tech-toolchain/2021/07/19/msg004025.html
    
    config/ChangeLog:
    
    	* picflag.m4: Simplify SHmedia NetBSD match by presuming ELF.
    
    gcc/ChangeLog:
    
    	* configure: Regenerate.
    
    libada/ChangeLog:
    
    	* configure: Regenerate.
    
    libgcc/ChangeLog:
    
    	* configure: Regenerate.
    
    libiberty/ChangeLog:
    
    	* configure: Regenerate.