Subject: RE: libexec
To: Manuel Bouyer <bouyer@antioche.eu.org>
From: Madhvesh R S <madhvesh.s@ap.sony.com>
List: netbsd-help
Date: 03/08/2004 10:50:25
On Saturday, March 06, 2004 8:43 PM, Manuel Bouyer wrote
>cd /usr/src/libexec/ld.elf_so && make USETOOLS=never
Thanks
>I don't think statically linked programs can use dlopen().
>This is why -current has switched to a fully dynamic userland.
I donot agree for this. Even statically linked programs should be
able to open a shared object. But in this case, the symbols of
main program cannot be linked for the shared object since main
program is built statically. Any old versions of NetBSD support
dlopen for statically built programs?
>I don't think you can easily, you'll probably have to install is in
>place of /usr/libexec/ld.elf_so
How do i install in different folder? any option as part of
"make install" or "make" ?
Thanks
Best Regards
-MS
-----Original Message-----
From: Manuel Bouyer [mailto:bouyer@antioche.eu.org]
Sent: Saturday, March 06, 2004 8:43 PM
To: Madhvesh Sulibhavi
Cc: netbsd-help@NetBSD.org
Subject: Re: libexec
On Sat, Jan 03, 2004 at 06:14:11PM +0530, Madhvesh R S wrote:
> Hi,
>
> I am referring the NetBSD-v1.6
> I want to rebuild only the
> /usr/src/libexec/ld.elf_so folder.
> Can any one tell me how to go about
> this?
cd /usr/src/libexec/ld.elf_so && make USETOOLS=never
>
> Is this the same library which will be
> picked up during dynamic linking for ELF
> format files? Also i want to use gdb to
> debug the source of dynamic linker for
> statically linked programs which make dlopen
> calls.
I don't think statically linked programs can use dlopen().
This is why -current has switched to a fully dynamic userland.
>
> To use the library with gdb, while building do
> i need to specify any explicit flags for ld.elf_so folder?
-g, I guess.
>
> Also after building, how to use this newly created libexec
> library with sample programs to use with gdb source level
> debugging?
I don't think you can easily, you'll probably have to install is in
place
of /usr/libexec/ld.elf_so
--
Manuel Bouyer <bouyer@antioche.eu.org>
NetBSD: 26 ans d'experience feront toujours la difference
--