Hello Richard,
Using CC args causing linker error "unknown executable format" so I called linker directly.
Also, I wrote my initial code without any hardcoded symbols and that test code works in my local machine but when the same code executed in Yocto build environment SIGSEGV faults are reported. And to debug the issue in Yocto build environment the printf/echo outputs are not shown in console/log file. So, I modified my code to check whether this solution works in AB machine or not.
Can you let me know what is the error in AB machine with unsetenv("LD_LIBRARY_PATH"); ? Is it the same relocation error?
Thanks,
Sundeep K.