[lldb-dev] ARM + ELF questions
deeppatel1987 at gmail.com
Fri Jun 11 13:26:17 PDT 2010
On Fri, Jun 11, 2010 at 2:43 AM, Bobby Powers <bobbypowers at gmail.com> wrote:
> On Thu, Jun 10, 2010 at 6:39 PM, Greg Clayton <gclayton at apple.com> wrote:
>> Does anyone know if there is a way to distinguish which architecture (armv4, armv5, armv5t, armv6, armv7) ARM ELF files are?
>> The only thing I know of is the e_machine in the ELF header. I know ARM ELF files (.axf files) might have some special bits, but is there anything in linux that is adopted?
> lookign at the ARM ELF spec , they list a (possibly example) build
> attribute (p 20) called Tag_CPU_name:
> Tag_CPU_name <string> -- 0x05, "ARM946E-S"
> I'm not sure if thats useful, possibly another build attribute might
> be more descriptive.
>  - http://infocenter.arm.com/help/topic/com.arm.doc.ihi0044b/IHI0044B_aaelf.pdf
Take a look at ARMAsmPrinter::EmitStartOfAsmFile() in
llvm/lib/Target/ARM/ARMAsmPrinter.cpp to see how these attributes are
currently being set by LLVM.
More information about the lldb-dev