You can't rely on finding it.  Executable images are only required to have 
segment headers an d the attributes system uses section headers.  Section 
headers can be removed when an image gets stripped.



On 10 Nov 2011, at 16:46, "Loïc Minier" 
<loic.min...@linaro.org<mailto:loic.min...@linaro.org>> wrote:

On Thu, Nov 10, 2011, Richard Earnshaw wrote:
The build attributes were never intended to be used in executables; the
format is too expensive to decode in most situations.  Instead the ABI
specification included an optional PHEADER that had a highly simplified
indication of the executable compatibility of an image (essentially the
architecture).  Unfortunately this has never been added to GNU Binutils.

See PT_ARM_ARCHEXT in the ARM ELF specification (available from infocenter).

As a poor man's test, would it be reliable to test Tag_CPU_name on the
resulting u-boot ELF binary at the end of the build?  If I read you
correctly, you seem to suggest that it would be too fragile?

--
Loïc Minier


-- IMPORTANT NOTICE: The contents of this email and any attachments are 
confidential and may also be privileged. If you are not the intended recipient, 
please notify the sender immediately and do not disclose the contents to any 
other person, use it for any purpose, or store or copy the information in any 
medium. Thank you.
_______________________________________________
linaro-toolchain mailing list
linaro-toolchain@lists.linaro.org
http://lists.linaro.org/mailman/listinfo/linaro-toolchain

Reply via email to