From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2786 invoked by alias); 17 Aug 2007 13:59:44 -0000 Received: (qmail 2708 invoked by uid 22791); 17 Aug 2007 13:59:43 -0000 X-Spam-Check-By: sourceware.org Received: from pollux.ds.pg.gda.pl (HELO pollux.ds.pg.gda.pl) (153.19.208.7) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 17 Aug 2007 13:59:39 +0000 Received: from localhost (localhost [127.0.0.1]) by pollux.ds.pg.gda.pl (Postfix) with ESMTP id B78A6E1C88; Fri, 17 Aug 2007 15:59:32 +0200 (CEST) Received: from pollux.ds.pg.gda.pl ([127.0.0.1]) by localhost (pollux.ds.pg.gda.pl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id iMhDaDptglIq; Fri, 17 Aug 2007 15:59:32 +0200 (CEST) Received: from piorun.ds.pg.gda.pl (piorun.ds.pg.gda.pl [153.19.208.8]) by pollux.ds.pg.gda.pl (Postfix) with ESMTP id D1B73E1C96; Fri, 17 Aug 2007 15:59:16 +0200 (CEST) Received: from blysk.ds.pg.gda.pl (macro@blysk.ds.pg.gda.pl [153.19.208.6]) by piorun.ds.pg.gda.pl (8.13.8/8.13.8) with ESMTP id l7H9vOOB026856; Fri, 17 Aug 2007 11:57:24 +0200 Date: Fri, 17 Aug 2007 14:08:00 -0000 From: "Maciej W. Rozycki" To: Mike Frysinger cc: binutils@sourceware.org, Joel Sherrill , Andreas Schwab , Ralf Corsepius Subject: Re: binary to elf conversion In-Reply-To: <200708161405.08914.vapier@gentoo.org> Message-ID: References: <46C46561.30105@oarcorp.com> <46C48BAB.7030406@oarcorp.com> <200708161405.08914.vapier@gentoo.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Status: Clean X-IsSubscribed: yes Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org X-SW-Source: 2007-08/txt/msg00276.txt.bz2 On Thu, 16 Aug 2007, Mike Frysinger wrote: > > Why doesn't it default to the default architecture binutils was > > built for? > > i think a similar question was posed for default -EB/-EL selection and the > answer was no one really cared enough to fix it ;) One issue is for some architectures you cannot set some ELF file header flags that may be needed for some uses of the resulting object file. For example for MIPS/Linux you cannot set the PIC flag which makes the file less that useful if you want it to become a part of userland binary. A better solution these days is often to use `gas' (through the `gcc' driver and hence accepting all the usual target-specific and less so object generation options) and its .incbin directive instead... > i imagine if you posted a patch, there wouldnt really be objections to the > behavior change ... ... which may actually be the reason nobody bothered to prepare such a patch so far. Maciej