From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11760 invoked by alias); 14 Jul 2006 18:44:55 -0000 Received: (qmail 11672 invoked from network); 14 Jul 2006 18:44:46 -0000 Received: from unknown (85.17.16.1) by sourceware.org with QMTP; 14 Jul 2006 18:44:46 -0000 Received: (qmail 28272 invoked by uid 210); 14 Jul 2006 20:49:59 +0200 Received: from 84.123.228.149 by zeus (envelope-from , uid 201) with qmail-scanner-2.01st (clamdscan: 0.88.2/1598. spamassassin: 3.1.3. perlscan: 2.01st. Clear:RC:1(84.123.228.149):. Processed in 0.025993 secs); 14 Jul 2006 18:49:59 -0000 Received: from unknown (HELO ?192.168.1.5?) (84.123.228.149) by 0 with (DHE-RSA-AES256-SHA encrypted) SMTP; 14 Jul 2006 20:49:59 +0200 Message-ID: <44B7E617.7010704@unixevil.info> Date: Fri, 14 Jul 2006 18:44:00 -0000 From: Victor Roman Archidona User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) MIME-Version: 1.0 To: binutils@sourceware.org Subject: Binary format output OpenPGP: id=A31FA9A0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org X-SW-Source: 2006-07/txt/msg00189.txt.bz2 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi all, I'm porting FreeBSD to Gentoo for the Summer of Code project "Gentoo/FreeBSD for Amd64", and I need a little help about gcc binary output when compiling files. I was pointed here from gcc-help mailing list. I compiled by hand GCC and binutils (2.17), and when I compile some file the output format is "UNIX - System V". I got this with `readelf -h program`. The problem is that I need the default binary output must be "UNIX - FreeBSD" and for now I can't fix it without help. BTW, If the output is "UNIX - System V" I can't run static compiled files, it shall be fixed changing the output behaviour. For example with the following small C program: #include #include int main(int argc, char *argv[]) { printf("it works!\n"); exit(EXIT_SUCCESS); } root@localhost ~ # gcc -static test.c -o test root@localhost ~ # readelf -h test | grep "OS/ABI" OS/ABI: UNIX - System V root@localhost ~ # ./test ELF binary type "0" not known. - - -su: ./test: cannot execute binary file root@localhost ~ # If any information is required tell me (such gcc config line, binutils config line, emulations or BFDs compiled). As I posted here in other list before pointed to this one, I included the links for reference: FreeBSD-Hackers: http://lists.freebsd.org/pipermail/freebsd-hackers/2006-July/017123.html GCC-Help: http://gcc.gnu.org/ml/gcc-help/2006-07/msg00134.html Any input in this topic will be very apreciated. Thanks for all in advance, - - -- Victor Roman Archidona -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (MingW32) iD8DBQFEt+YXQ/ddYKMfqaARAoQjAJ4iI6n8wsjhqR6f1/TwW2LI9LVhiQCfUoZT OHxLkFfMHYEMSxhwl9m7Npo= =LrTh -----END PGP SIGNATURE-----