[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [microblaze-uclinux] libdl.a not available in microblaze linux
Hi Victor,
victor-sv_yeo@xxxxxxxxxxx wrote:
> I am compiling a program on microblaze linux. The program makes use of
> dlopen, dlsym, and dlclose functions. To my surprise, when I compile the
> program with –ldl switch, the libdl.a cannot be found. I search through
> the petalinux directory, there is no libdl.a as well.
>
> Does it mean microblaze linux is incapable of supporting dynamic linking
> functions (dlopen, dlsym, dlclose)?
That is correct.
The MicroBlaze gcc toolchain lacks the ability to generate position
independent code, which is a prerequisite for shared libraries.
The workaround doesn't have to be too painful - just build the library
as a static .a archive, and statically link.
Regards,
John
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/