|
Re: Issue while building a shared library
|
11/19/2010 7:54 AM
post75268
|
Re: Issue while building a shared library
On 10-11-19 04:46 AM, Girisha SG wrote:
> Finally I am able to build it :) thanks for all your help.
>
> I have following queries,
> 1. Whether we have libgcc.so file for ARMV7 that defines
> '__aeabi_uldivmod' symbol ?
Yes.. libgcc.a has this routine..
ntoarm-nm
/opt/qnx650/host/linux/x86/usr/lib/gcc/arm-unknown-nto-qnx6.5.0eabi/4.4.2/pic/libgcc.a
| grep __aeabi_uldivmod
00000000 T __aeabi_uldivmod
>
> 2. I am having multiple folders and one .so within each folder, while
> building the executable I am giving the .so file paths relative to the
> current folder, suppose I copy the .so & .exe files in the same folder
> on the target and run the executable it works. Now suppose I want to
> retain the existing command while building the executable but while
> running I want all these .so files to be present in some other folder,
> how can I do this & how OS/exe comes to know where are the .so files and
> how to load it?
Use LD_LIBRARY_PATH to tell the dynamic linker where to find the shared
objects on your target,
Regards,
Ryan Mansfield
|
|
|