From owner-freebsd-current@FreeBSD.ORG Sat Jul 1 11:55:30 2006 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 16D9B16A403 for ; Sat, 1 Jul 2006 11:55:30 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from mail02.syd.optusnet.com.au (mail02.syd.optusnet.com.au [211.29.132.183]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6541543D45 for ; Sat, 1 Jul 2006 11:55:29 +0000 (GMT) (envelope-from peterjeremy@optushome.com.au) Received: from turion.vk2pj.dyndns.org (c220-239-19-236.belrs4.nsw.optusnet.com.au [220.239.19.236]) by mail02.syd.optusnet.com.au (8.12.11/8.12.11) with ESMTP id k61Bt8Gc020195 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Sat, 1 Jul 2006 21:55:08 +1000 Received: from turion.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by turion.vk2pj.dyndns.org (8.13.6/8.13.6) with ESMTP id k61Bt8j9010920; Sat, 1 Jul 2006 21:55:08 +1000 (EST) (envelope-from peter@turion.vk2pj.dyndns.org) Received: (from peter@localhost) by turion.vk2pj.dyndns.org (8.13.6/8.13.6/Submit) id k61Bt8Gj010919; Sat, 1 Jul 2006 21:55:08 +1000 (EST) (envelope-from peter) Date: Sat, 1 Jul 2006 21:55:08 +1000 From: Peter Jeremy To: Mikhail Teterin Message-ID: <20060701115508.GC8447@turion.vk2pj.dyndns.org> References: <200607010009.09231@aldan> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="vOmOzSkFvhd7u8Ms" Content-Disposition: inline In-Reply-To: <200607010009.09231@aldan> X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc User-Agent: Mutt/1.5.11 Cc: current@freebsd.org Subject: Re: weird limitation on the system's binutils X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Jul 2006 11:55:30 -0000 --vOmOzSkFvhd7u8Ms Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, 2006-Jul-01 00:09:08 -0400, Mikhail Teterin wrote: >I'm wondering, why the bfd and related bits and pieces of binutils are bui= lt=20 >to support only the architecture(s), that can natively run on the system? IMHO, the FreeBSD base system should provide tools for doing native development - anything beyond that belongs in ports. Given that binutils supports quite an extensive range of targets (of thr order of 100), building them all is impractical and a waste of resources for virtually everyone who uses FreeBSD. >Why can't I use gdb or objdump on FreeBSD/i386 to analyze a core file, or = a=20 >binary from another FreeBSD or even from a non-FreeBSD system? You can if you install the relevant ports. >The tools themselves support that. The sources (bfd-vectors) for all other= =20 >supported architectures are part of the tree (under contrib/). So, why not= =20 >build them? My reading of contrib/binutils suggests that files for targets not related to FreeBSD are in the exclude/delete list and aren't imported into the FreeBSD repository. >If it really is SO much of a bloat, why do we install gdb, etc. in the fir= st=20 >place? I'm happy with buildworld building a toolchain that supports native development on FreeBSD. I have used FreeBSD for cross-development and I'm happy to manually install a toolchain to support the target I'm developing for. I'd be somewhat concerned if buildworld decided to build a toolchain that supported around several targets for each of around 100 different processors - the vast majority I'd never use. >P.S. What I also want is the /lib/libbfd.so and friends, so I (and the 15= =20 >devel/*binutils ports) can build my own tools linking with it. Unfortunate= ly,=20 >that too remains impossible... libbdf.a is built by /usr/src/gnu/usr.bin/binutils/libbfd/Makefile. That should be a fairly simple change to arrange for it to build and install the .so as well. --=20 Peter Jeremy --vOmOzSkFvhd7u8Ms Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (FreeBSD) iD8DBQFEpmKb/opHv/APuIcRAp3zAKCvf+DrMn2O43v92eUexyxmYkNdYQCggByu BKgPKkH1wq+wEcGEMNPJ3iQ= =pMUw -----END PGP SIGNATURE----- --vOmOzSkFvhd7u8Ms--