NetBSD Problem Report #32190

From root@ahatec.de  Tue Nov 29 12:13:58 2005
Return-Path: <root@ahatec.de>
Received: from mail.onlinefix.de (mail2-out.titan-networks.de [217.140.72.1])
	by narn.netbsd.org (Postfix) with ESMTP id 4D71763B8C2
	for <gnats-bugs@gnats.netbsd.org>; Tue, 29 Nov 2005 12:13:57 +0000 (UTC)
Message-Id: <E1Eh4Mm-00021f-2Y@nda.ahatec.de>
Date: Tue, 29 Nov 2005 13:13:48 +0100
From: "Andreas Hallmann,,," <root@ahatec.de>
Reply-To: root@ahatec.de
To: gnats-bugs@netbsd.org
Subject: Security fix devel/binutils
X-Send-Pr-Version: 3.95

>Number:         32190
>Category:       pkg
>Synopsis:       Security fix devel/binutils
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Nov 29 12:14:00 +0000 2005
>Closed-Date:    Sun Jan 08 00:09:48 +0000 2006
>Last-Modified:  Sun Jan 08 04:40:01 +0000 2006
>Originator:     Andreas Hallmann
>Release:        NetBSD 1.6.2_STABLE
>Organization:
	Hallmann EDV Dienstleistungen
>Environment:
System: NetBSD nda 1.6.2_STABLE NetBSD 1.6.2_STABLE (AHAv8#2) #11: Mon May 23 09:22:03 CEST 2005 toor@nda:/mounts/netbsd/src/sys/arch/sparc/compile/AHAv8#2 sparc
Architecture: sparc
Machine: sparc
>Description:
	binutils are vulnarable by buffer overflow
	Version 2.16.1 is said to be fixed with respect this issue by gentoo linux security advisory GLSA 200506-01/binutils (who detected the bug)
	Therefor this upgrade.
	ATTENTION: Our security audit should be updated to accept binutils >=2.16.1.0
	Since this VULNERABILITY is remote exploitable ... a pull up to pkgsrc-2005Q3 should be considered.

>How-To-Repeat:
>Fix:

Index: devel/binutils/Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/devel/binutils/Makefile,v
retrieving revision 1.27
diff -r1.27 Makefile
3,4c3,4
< DISTNAME=	binutils-2.15
< PKGNAME=	binutils-2.15.0.0
---
> DISTNAME=	binutils-2.16.1
> PKGNAME=	binutils-2.16.1.0
Index: devel/binutils/PLIST.common
===================================================================
RCS file: /cvsroot/pkgsrc/devel/binutils/PLIST.common,v
retrieving revision 1.9
diff -r1.9 PLIST.common
34a35
> ${PKGLOCALEDIR}/locale/ro/LC_MESSAGES/binutils.mo
49a51
> ${NO_GPROF}${PKGLOCALEDIR}/locale/vi/LC_MESSAGES/gprof.mo
Index: devel/binutils/distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/devel/binutils/distinfo,v
retrieving revision 1.5
diff -r1.5 distinfo
3,6c3,6
< SHA1 (binutils-2.15.tar.gz) = 4caf693b8cbaf1118d2bfddb40a2fc91eaf51a6f
< RMD160 (binutils-2.15.tar.gz) = d23535cb8ba5f68f095e34b7c5f7163c9c15c80e
< Size (binutils-2.15.tar.gz) = 15134701 bytes
< SHA1 (patch-aa) = 34f4efe9ab793c38eccb016bd9498a7db1494953
---
> SHA1 (binutils-2.16.1.tar.gz) = df79ed47b4388a205adf3089d4e36ce47724c940
> RMD160 (binutils-2.16.1.tar.gz) = 304b2b53f9aa15794962af842f4f93b71308c495
> Size (binutils-2.16.1.tar.gz) = 16378360 bytes
> SHA1 (patch-aa) = 3f0b6cc9c0aff0dd2e400334f08da4a22cfc443e
Index: devel/binutils/patches/patch-aa
===================================================================
RCS file: /cvsroot/pkgsrc/devel/binutils/patches/patch-aa,v
retrieving revision 1.2
diff -r1.2 patch-aa
1c1
< $NetBSD: patch-aa,v 1.2 2003/07/14 19:01:36 fredb Exp $
---
> $NetBSD$
3c3
< --- configure.orig	Mon Jul 14 09:36:26 2003
---
> --- configure.orig	Mon Feb 28 15:06:59 2005
5c5
< @@ -784,7 +784,7 @@ host_libs="intl mmalloc libiberty opcode
---
> @@ -914,7 +914,7 @@ host_libs="intl mmalloc libiberty opcode
9,10c9,10
< -host_tools="texinfo byacc flex bison binutils gas ld gcc sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils gettext zip fastjar"
< +host_tools="texinfo byacc flex bison binutils gas ld gcc sid sim gdb make patch prms send-pr gprof expect dejagnu ash bash bzip2 m4 autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils gettext zip fastjar"
---
> -host_tools="texinfo byacc flex bison binutils gas ld fixincludes gcc sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils gettext zip fastjar gnattools"
> +host_tools="texinfo byacc flex bison binutils gas ld fixincludes gcc sid sim gdb make patch prms send-pr gprof expect dejagnu ash bash bzip2 m4 autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils gettext zip fastjar gnattools"

>Release-Note:

>Audit-Trail:
From: Thomas Klausner <wiz@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: PR/32190 CVS commit: pkgsrc/devel/binutils
Date: Sat,  7 Jan 2006 23:59:46 +0000 (UTC)

 Module Name:	pkgsrc
 Committed By:	wiz
 Date:		Sat Jan  7 23:59:46 UTC 2006

 Modified Files:
 	pkgsrc/devel/binutils: Makefile PLIST.common distinfo
 	pkgsrc/devel/binutils/patches: patch-aa

 Log Message:
 Update to 2.16.1, provided by Andreas Hallmann in PR 32190.

 Changes in binutils:

 * Binutils-2.16 will be the last release for a number of targets due to
   lack of maintenance (of course, if maintainers step up, then this list
   will change!).  The targets are:

     a29k-*-*
     d10v-*-*
     d30v-*-*
     dlx-*-*
     h8300-*-coff
     h8300-*-rtems*
     h8500-*-coff
     h8500-*-rtems*
     i370-*-*
     i960-*-*
     i960-*-bout
     i960-*-coff
     i960-*-nindy*
     i960-*-rtems*
     i960-*-vxworks*
     i960-*-vxworks5.*
     i960-*-vxworks5.0
     m68k-*-coff
     m68k-*-hpux*
     m68k-*-linux*aout*
     m68k-*-rtemscoff*
     m68k-*-sunos*
     m68k-*-sysv*
     m68k-*-vxworks*
     m68k-apollo-*
     m68k-apple-aux*
     m68k-bull-sysv3*
     m68k-ericsson-ose
     m68k-motorola-sysv*
     m88k-*-*					(*)
     mn10200-*-*
     openrisc-*-*
     or32-*-*
     or32-*-coff
     pj*-*-*
     sh-*-coff*
     sh-*-rtemscoff*
     tic80-*-*
     vax-*-bsd*					(*)
     vax-*-netbsd* excluding vax-*-netbsdelf	(*)
     vax-*-ultrix*				(*)
     w65-*-*
     xscale-*-coff
     *-*-linux*aout*
     *-*-linux*oldld

     (*) bfd and opcodes support will be kept.

 * Add "-g/--section-groups" to readelf to display section groups.

 * objcopy recognizes two new options --strip-unneeded-symbol and
   --strip-unneeded-symbols, namely for use together with the wildcard
   matching the original --strip-symbol/--strip-symbols provided, but
   retaining any symbols matching but needed by relocations.

 * readelf can now display address ranges from .debug_range sections.  This
   happens automatically when a DW_AT_range attribute is encountered.  The
   command line switch --debug-dump=Ranges (or -wR) can also be used to display
   the contents of the .debug_range section.

 * nm and objdump now have a switch "--special-syms" to enable the displaying of
   symbols which the target considers to be special.  By default these symbols
   are no longer displayed.  Currently the only special symbols are the Mapping
   symbols used by the ARM port to mark transitions between text and data and
   between ARM and THUMB code.

 * dlltool has a switch "--ext-prefix-alias <prefix>" to generate additional
   import and export symbols with <preifx> prepended to them.

 Changes in gas:

 * Redefinition of macros now results in an error.

 * New command line option -mhint.b=[ok|warning|error] for IA64 targets.

 * New command line option -munwind-check=[warning|error] for IA64
   targets.

 * The IA64 port now uses automatic dependency violation removal as its default
   mode.

 * Port to MAXQ processor contributed by HCL Tech.

 * Added support for generating unwind tables for ARM ELF targets.

 * Add a -g command line option to generate debug information in the target's
   preferred debug format.

 * Support for the crx-elf target added.

 * Support for the sh-symbianelf target added.

 * Added a pseudo-op (.secrel32) to generate 32 bit section relative relocations
   on pe[i]-i386; required for this target's DWARF 2 support.

 * Support for Motorola MCF521x/5249/547x/548x added.

 * Support for ColdFire EMAC instructions added and Motorola syntax for MAC/EMAC
   instrucitons.

 * New command line option -mno-shared for MIPS ELF targets.

 * New command line option --alternate and pseudo-ops .altmacro and .noaltmacro
   added to enter (and leave) alternate macro syntax mode.

 Changes in ld:

 * Support for the R_ARM_V4BX relocation as defined in the ARM AAELF
   specification has been added via the --fix-v4bx command-line option.

 * New linker script construct AS_NEEDED(), which sets the --as-needed flag
   for input files listed inside of it.

 * A new command-line option, --sysroot, can be used to override the
   default sysroot location.  It only applies to toolchains that were
   configured using --with-sysroot.

 * New linker script functions: ORIGIN() and LENGTH() which return information
   about a specified memory region.

 * Port to MAXQ processor contributed by HCL Tech.

 * Added SEGMENT_START to the linker script language to permit the user to
   override the base address for a segment from the command-line.

 * ELF: --warn-shared-textrel option to warn if adding a DT_TEXTREL to a shared
   object.

 * Added SORT_BY_NAME and SORT_BY_ALIGNMENT to the linker script
   language to permit sorting sections by section name or section
   maximum alignment.

 * Added a new linker command line switch, --sort-section name|alignment,
   to sort sections by section name or maximum alignment.

 * ELF: --add-needed/--no-add-needed options to control if a DT_NEEDED tag
   should be added when a shared library comes from DT_NEEDED tags.

 * Support for the crx-elf target added.

 * Support for the sh-symbianelf target added.

 * A new linker command line switch has been added which allows the hash table
   size to be set to a suitable prime value near to its argument.  This switch
   is --hash-size=<NUMBER>.  Also if the switch --reduce-memory-overheads is
   used, and --hash-size has not been used, then the default value will be set
   to 1021.

 * Linker map files are now generated with an O(N) algorithm for finding symbols
   that are defined in each section.  This uses about 40% more memory for
   symbols than the old O(N^2) algorithm.  You can use the new
   --reduce-memory-overheads option to select the old algorithm; this option
   might also be used in the future to select similar tradeoffs.


 To generate a diff of this commit:
 cvs rdiff -r1.27 -r1.28 pkgsrc/devel/binutils/Makefile
 cvs rdiff -r1.9 -r1.10 pkgsrc/devel/binutils/PLIST.common
 cvs rdiff -r1.5 -r1.6 pkgsrc/devel/binutils/distinfo
 cvs rdiff -r1.2 -r1.3 pkgsrc/devel/binutils/patches/patch-aa

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->closed
State-Changed-By: wiz@netbsd.org
State-Changed-When: Sun, 08 Jan 2006 00:09:48 +0000
State-Changed-Why:
Committed, thank you!


From: Lubomir Sedlacik <salo@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: PR/32190 CVS commit: [pkgsrc-2005Q4] pkgsrc/devel/binutils
Date: Sun,  8 Jan 2006 04:36:49 +0000 (UTC)

 Module Name:	pkgsrc
 Committed By:	salo
 Date:		Sun Jan  8 04:36:48 UTC 2006

 Modified Files:
 	pkgsrc/devel/binutils [pkgsrc-2005Q4]: Makefile PLIST.common distinfo
 	pkgsrc/devel/binutils/patches [pkgsrc-2005Q4]: patch-aa

 Log Message:
 Pullup ticket 1007 - requested by Thomas Klausner
 security update for binutils

 Revisions pulled up:
 - pkgsrc/devel/binutils/Makefile		1.28
 - pkgsrc/devel/binutils/PLIST.common		1.10
 - pkgsrc/devel/binutils/distinfo		1.6
 - pkgsrc/devel/binutils/patches/patch-aa	1.3

    Module Name:		pkgsrc
    Committed By:	wiz
    Date:		Sat Jan  7 23:59:46 UTC 2006

    Modified Files:
    	pkgsrc/devel/binutils: Makefile PLIST.common distinfo
    	pkgsrc/devel/binutils/patches: patch-aa

    Log Message:
    Update to 2.16.1, provided by Andreas Hallmann in PR 32190.

    Changes in binutils:

    * Binutils-2.16 will be the last release for a number of targets due to
      lack of maintenance (of course, if maintainers step up, then this list
      will change!).  The targets are:

        a29k-*-*
        d10v-*-*
        d30v-*-*
        dlx-*-*
        h8300-*-coff
        h8300-*-rtems*
        h8500-*-coff
        h8500-*-rtems*
        i370-*-*
        i960-*-*
        i960-*-bout
        i960-*-coff
        i960-*-nindy*
        i960-*-rtems*
        i960-*-vxworks*
        i960-*-vxworks5.*
        i960-*-vxworks5.0
        m68k-*-coff
        m68k-*-hpux*
        m68k-*-linux*aout*
        m68k-*-rtemscoff*
        m68k-*-sunos*
        m68k-*-sysv*
        m68k-*-vxworks*
        m68k-apollo-*
        m68k-apple-aux*
        m68k-bull-sysv3*
        m68k-ericsson-ose
        m68k-motorola-sysv*
        m88k-*-*					(*)
        mn10200-*-*
        openrisc-*-*
        or32-*-*
        or32-*-coff
        pj*-*-*
        sh-*-coff*
        sh-*-rtemscoff*
        tic80-*-*
        vax-*-bsd*					(*)
        vax-*-netbsd* excluding vax-*-netbsdelf	(*)
        vax-*-ultrix*				(*)
        w65-*-*
        xscale-*-coff
        *-*-linux*aout*
        *-*-linux*oldld

        (*) bfd and opcodes support will be kept.

    * Add "-g/--section-groups" to readelf to display section groups.

    * objcopy recognizes two new options --strip-unneeded-symbol and
      --strip-unneeded-symbols, namely for use together with the wildcard
      matching the original --strip-symbol/--strip-symbols provided, but
      retaining any symbols matching but needed by relocations.

    * readelf can now display address ranges from .debug_range sections.  This
      happens automatically when a DW_AT_range attribute is encountered.  The
      command line switch --debug-dump=Ranges (or -wR) can also be used to display
      the contents of the .debug_range section.

    * nm and objdump now have a switch "--special-syms" to enable the displaying of
      symbols which the target considers to be special.  By default these symbols
      are no longer displayed.  Currently the only special symbols are the Mapping
      symbols used by the ARM port to mark transitions between text and data and
      between ARM and THUMB code.

    * dlltool has a switch "--ext-prefix-alias <prefix>" to generate additional
      import and export symbols with <preifx> prepended to them.

    Changes in gas:

    * Redefinition of macros now results in an error.

    * New command line option -mhint.b=[ok|warning|error] for IA64 targets.

    * New command line option -munwind-check=[warning|error] for IA64
      targets.

    * The IA64 port now uses automatic dependency violation removal as its default
      mode.

    * Port to MAXQ processor contributed by HCL Tech.

    * Added support for generating unwind tables for ARM ELF targets.

    * Add a -g command line option to generate debug information in the target's
      preferred debug format.

    * Support for the crx-elf target added.

    * Support for the sh-symbianelf target added.

    * Added a pseudo-op (.secrel32) to generate 32 bit section relative relocations
      on pe[i]-i386; required for this target's DWARF 2 support.

    * Support for Motorola MCF521x/5249/547x/548x added.

    * Support for ColdFire EMAC instructions added and Motorola syntax for MAC/EMAC
      instrucitons.

    * New command line option -mno-shared for MIPS ELF targets.

    * New command line option --alternate and pseudo-ops .altmacro and .noaltmacro
      added to enter (and leave) alternate macro syntax mode.

    Changes in ld:

    * Support for the R_ARM_V4BX relocation as defined in the ARM AAELF
      specification has been added via the --fix-v4bx command-line option.

    * New linker script construct AS_NEEDED(), which sets the --as-needed flag
      for input files listed inside of it.

    * A new command-line option, --sysroot, can be used to override the
      default sysroot location.  It only applies to toolchains that were
      configured using --with-sysroot.

    * New linker script functions: ORIGIN() and LENGTH() which return information
      about a specified memory region.

    * Port to MAXQ processor contributed by HCL Tech.

    * Added SEGMENT_START to the linker script language to permit the user to
      override the base address for a segment from the command-line.

    * ELF: --warn-shared-textrel option to warn if adding a DT_TEXTREL to a shared
      object.

    * Added SORT_BY_NAME and SORT_BY_ALIGNMENT to the linker script
      language to permit sorting sections by section name or section
      maximum alignment.

    * Added a new linker command line switch, --sort-section name|alignment,
      to sort sections by section name or maximum alignment.

    * ELF: --add-needed/--no-add-needed options to control if a DT_NEEDED tag
      should be added when a shared library comes from DT_NEEDED tags.

    * Support for the crx-elf target added.

    * Support for the sh-symbianelf target added.

    * A new linker command line switch has been added which allows the hash table
      size to be set to a suitable prime value near to its argument.  This switch
      is --hash-size=<NUMBER>.  Also if the switch --reduce-memory-overheads is
      used, and --hash-size has not been used, then the default value will be set
      to 1021.

    * Linker map files are now generated with an O(N) algorithm for finding symbols
      that are defined in each section.  This uses about 40% more memory for
      symbols than the old O(N^2) algorithm.  You can use the new
      --reduce-memory-overheads option to select the old algorithm; this option
      might also be used in the future to select similar tradeoffs.


 To generate a diff of this commit:
 cvs rdiff -r1.27 -r1.27.4.1 pkgsrc/devel/binutils/Makefile
 cvs rdiff -r1.9 -r1.9.10.1 pkgsrc/devel/binutils/PLIST.common
 cvs rdiff -r1.5 -r1.5.8.1 pkgsrc/devel/binutils/distinfo
 cvs rdiff -r1.2 -r1.2.18.1 pkgsrc/devel/binutils/patches/patch-aa

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.