title: Error Cross Compiling: hidden symbol ... final link failed
body: <p>I am getting the following error when compiling opencv with ffmpeg.</p>
  
  <blockquote>
    <p>..../arm-none-linux-gnueabi/bin/ld: ../../bin/opencv_test_core: hidden symbol `__sync_val_compare_and_swap_4' in ..../arm-none-linux-gnueabi/bin/ld: final link failed: Nonrepresentable section on output
    collect2: ld returned 1 exit status</p>
  </blockquote>
  
  <p>I have no idea what this means. How do I fix this?</p>
  
  <p>Edit:
  I am cross compiling for ARM using codesourcery's arm-2009q3 compiler.
  I using cmake and make to compile.</p>