From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4510 invoked by alias); 17 Jul 2006 19:13:29 -0000 Received: (qmail 4501 invoked by uid 22791); 17 Jul 2006 19:13:28 -0000 X-Spam-Check-By: sourceware.org Received: from pne-smtpout4-sn2.hy.skanova.net (HELO pne-smtpout4-sn2.hy.skanova.net) (81.228.8.154) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 17 Jul 2006 19:13:26 +0000 Received: from [10.0.0.3] (84.248.179.139) by pne-smtpout4-sn2.hy.skanova.net (7.2.075) id 44A2EAB80008D3CB; Mon, 17 Jul 2006 21:13:08 +0200 Message-ID: <44BBE453.6000604@mbnet.fi> Date: Mon, 17 Jul 2006 19:13:00 -0000 From: Kai Ruottu User-Agent: Thunderbird 1.5.0.4 (X11/20060516) MIME-Version: 1.0 To: Victor Roman Archidona CC: gcc-help@gcc.gnu.org Subject: Re: gcc binary format output References: <44B4500F.4010406@unixevil.info> <44B64336.1040107@mbnet.fi> <17590.16794.458483.581617@zebedee.pink> <44B67AE5.8050307@mbnet.fi> <44B8F528.1000401@unixevil.info> In-Reply-To: <44B8F528.1000401@unixevil.info> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2006-07/txt/msg00221.txt.bz2 Victor Roman Archidona kirjoitti: > Thanks for your feedback Kai. In the binutils mailing list has been > sent a patch that fixes the problem. The URL for anyone interested in > it is: > > http://www.sourceware.org/ml/binutils/2006-07/msg00192.html > Thanks to you too! I tried also a crosscompiler for the 32-bit FreeBSD 6.1/i386 and checked if the 'bfd/config.bfd' had anything special for this target, different from the Linux/i386 for instance. And it definitely had, and this special 'bfd_elf32_i386_freebsd_vec' not listed for the 'x86_64-*-freebsd*'... Adding that maybe fixed the 32-bit support with '-m32' but not the 64-bit. So I already guessed that something should still be done to implement that missing 'bfd_elf64_x86_64_freebsd_vec'. The 'alpha' port for FreeBSD had its own special 'elf64_alpha_freebsd_vec' already... Why the official GNU binutils don't have this support for the FreeBSD/x86_64 (I checked the '060713' snapshots too), was of course weird. Anyway getting it "locally" should now succeed... > An example of binutils-2.17 with patch applied: > > root@localhost ~ # gcc -static test.c -o test > root@localhost ~ # ./test > it works! > root@localhost ~ # file test > test: ELF 64-bit LSB executable, AMD x86-64, version 1 (FreeBSD), for > FreeBSD 6.1, statically linked, for FreeBSD 6.1, not stripped > root@localhost ~ # > The 'i586-freebsd6.1' target toolchains (gcc-3.4.6, 4.0.3 and 4.1.1) I built seemed to produce quite "right" executables, lets see what the 'x86_64-freebsd6.1' ones will do now. Of course reproducing all their 'libgcc_s.so.1's and 'libstdc++.so's must be done...