On 9/30/2010 4:31 AM, Loïc Minier wrote:
On Wed, Sep 29, 2010, Mark Mitchell wrote:
It is theoretically possible that there's insufficient information for strip to know what it's looking at, but I'd be very surprised; there should be an ELF header field that indicates the machine type.
And I guess if there's not, it's also a binutils bug :-)
There are some object/executable file formats where this is no place to put an architecture tag. (The most extreme example is the "binary" format, which is just an exact copy of the program as it will be programmed into flash.) But, yes, in ELF format object files or executables, there is a header and that header has a field for the architecture, so if something is not filling it in, that thing should be fixed.