AnsweredAssumed Answered

Cross build binary for ARMv7l, EABI5 or ld_preload issue

Question asked by Gopi Krishnan on Aug 29, 2016
Latest reply on Aug 31, 2016 by Bio_TICFSL

Am currently trying to compile an c++ source to so file manually. Without recipe, I would like to cross build it arm7L EABI5 format. Currently, I am getting the so file in format of EABI4 and on board it is complaining,

 

ERROR: ld.so: ****.so from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored error

 

Under /opt/freescale, cross tool-chain is available. 

 

While building:

1) export PATH=/opt/freescale/usr/local/gcc-4.1.2-glibc-2.5-nptl-3/arm-none-linux-gnueabi/arm-none-linux-gnueabi/bin:$PATH

2) g++ lib***.c -o lib***-arm.so -fPIC -shared -pthread -ldl -D_GNU_SOURCE

 

While executing

1) sudo LD_PRELOAD=./lib***.so LD_LIBRARY_PATH=. ./app

 

Am I missing anything?

 

Thanks,

Outcomes