From: Stefan Traby <stefan@sime.com>
Subject: Re: Solution to --> Re: dlopen() bug on Linux/Alpha
Date: Sun, 11 Jan 1998 09:59:27 +0100 [thread overview]
Message-ID: <a43e1b118bcdde5e990751d6e297e9d6.axp-list@archive.invalid> (raw)
Hi !
> ST: 'Try to link the main (!) program with "-export-dynamic -shared"'
>
> rather than the dynamic library only we got dlopen to work. This
> might be the solution to GNU glibc PR number 387. I am not going to
> say it is a fix, but it is working for us.
To maintainers: I don't have an AXP-machine and currently don't use gibc.
Please check another special condition: Make a simple program
which does dlopen and dlsym (no, don't call main :-) on itself.
Simplified I mean dlopen(argv[0],...) but argv[0] may not contain
the full path...
Does it work ?
If and only if, why ? is (export == dlsym(, "export") in this special
case ?
Of corse this is a hack and not a real-world solution. On a non glibc
GNU-Linux/i386 system, linking with "-shared" makes the
program dump core _before_ main is called. SIGSEGV "#0 0x4 in ?? ()"
The hack is simply based on a special, simplified point of view:
A program is a special case of an dynamic library.
(it contains _start and main()).
This may not be true and is not portable.
--
ciao -
Stefan
Stefan Traby phone: +43-3133-6107-2
Mitterlasznitzstr. 13 fax: +43-3133-6107-9
8302 Nestelbach mailto://stefan@sime.com
Austria
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
next reply other threads:[~1998-01-11 8:59 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-01-11 8:59 Stefan Traby [this message]
-- strict thread matches above, loose matches on Subject: below --
1998-01-11 17:00 Solution to --> Re: dlopen() bug on Linux/Alpha N8YDAWG
1998-01-11 16:30 Richard Hadsell
1998-01-11 4:15 Dan Weeks
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox