I am tyring to cross compile Xorg for arm-cortexA8 cpu with arm7-a architecture. I am following the instructions given in the following websites,
tool chain used is arm-none-linux-gnueabi version 4.4.1 from code sourcery.
While cross compiling libGL, I am getting error message at linking stage,
"mklib: Making Linux shared library: r300_dri.so.tmp"
"/usr/local/arm-2010q1/bin/../lib/gcc/arm-none-linux-gnueabi/4.4.1/../../../../arm-none-linux-gnueabi/bin/ld: r300_dri.so.test: hidden symbol `__sync_sub_and_fetch_4' in /usr/local/arm-2010q1/bin/../lib/gcc/arm-none-linux-gnueabi/4.4.1/libgcc.a(linux-atomic.o) is referenced by DSO
/usr/local/arm-2010q1/bin/../lib/gcc/arm-none-linux-gnueabi/4.4.1/../../../../arm-none-linux-gnueabi/bin/ld: final link failed: Nonrepresentable section on output"
Tool chain location in /usr/local/
Mklib creates a shared library with name r300_dri.so.tmp but while linking r300_dri_so.test is linked which I couldnt find in my build directory.
Cross tool chain gcc version 4.4.1 supports for atomic instructions but they are part of GLOBAL HIDDEN (obtained when I ran readelf for the libgcc.a), and armv7a architecture also supports atomic instructions, I tried with -march=armv7-a settings in the CFLAGS but got the same error
Can anyone assist me on this issue??
Thanks in advance.
With Best Regards,
C. N. Harsha Sukeerthi