[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [microblaze-uclinux] libdl.a not available in microblaze linux



John,

Thank you for your reply.

I suppose microblaze linux cannot link against shared libraries, as in

  "microblaze-uclinux-gcc libc.so myobj.o -o myexec"

since microblaze linux cannot generate shared libraries, and thus there is no supply of shared libraries for microblaze linux.

Victor

-----Original Message-----
From: owner-microblaze-uclinux@xxxxxxxxxxxxxx [mailto:owner-microblaze-uclinux@xxxxxxxxxxxxxx] On Behalf Of John Williams
Sent: Wednesday, June 06, 2007 4:54 PM
To: microblaze-uclinux@xxxxxxxxxxxxxx
Subject: 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/


___________________________
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/