This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: binary to elf conversion


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]