This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
How to identify Arch info when building
- From: naveen yadav <yad dot naveen at gmail dot com>
- To: gcc-help at gnu dot org
- Date: Wed, 31 Oct 2012 18:28:31 +0530
- Subject: How to identify Arch info when building
Hi All,
I have two ARM arch (A9 and A15). and have cross compiler for both.
Since code is integrated, some time .so got mixed(A9 with A15), and at
run time it fails with undefined instruction.
Is there any way to check strict at build time, we through an error.
Scenario.
(A15 code) + A9(.so)= executable when run on target (undefined instruction)
Tag_CPU_name: "Cortex-A15"
Tag_CPU_arch: v7
Tag_CPU_arch_profile: Application
Tag_ARM_ISA_use: Yes
Tag_CPU_name: "Cortex-A9"
Tag_CPU_arch: v7
Tag_CPU_arch_profile: Application
thanks