title: Can I retarget a prebuilt ARM binary (static library)?
body: <p>I have a static library (.a) built to run directly on an ARM Cortex-M0+ (arm-none-eabi).  Is it possible to modify it or my toolchain somehow so that I can use the library on a Cortex-A7 running android (arm-linux-androideabi)?  I don't have access to the source it was built from.</p>
  
  <p>The library does not interact with the hardware peripherals.
  It was originally built with the Freescale ARM compiler; I'm using gcc.  </p>
  
  <p>When I tried to link it, I got</p>
  
  <pre><code>error: conflicting architecture profiles M/A
  warning: {the file} uses variable-size enums yet the output is to use 32-bit enums; use of enum values across objects may fail
  warning: cannot scan executable section {some number} of {the file} for Cortex-A8 erratum because it has no mapping symbols.
  </code></pre>
  
  <p>repeated a couple times for each object file in the library.</p>