Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Fri, 24 Jun 2016 16:23:55 +0000
From: Andrei Pozolotin <>
Subject: Re: musl ldd: swt build: Error relocating / symbol not found


On 06/23/2016 11:15 PM, Szabolcs Nagy wrote:
> * Andrei Pozolotin <> [2016-06-23 19:42:44 +0000]:
>> b) while at the same time musl ldd reporting that library dependency
>> tree is resolved with no error:
>> lddtree /usr/lib/
> that's not musl's ldd, but scanelf from pax-utils
thank you for pointing out.
> when debugging such a complicated setup the output
> of tools that may use subtly different library paths
> and symbol resolution logic is not very helpful.
ok, got it.
> ldd /usr/lib/
ldd /usr/lib/
        ldd (0x55e333e6c000) => ldd (0x55e333e6c000)
> ldd /usr/lib/
ldd /usr/lib/
        ldd (0x55edc6edc000) => /usr/lib/ (0x7fc763298000) => ldd (0x55edc6edc000) => /usr/lib/ (0x7fc763058000) => /usr/lib/ (0x7fc762d6d000) => /usr/lib/ (0x7fc762b5f000) => /usr/lib/ (0x7fc762957000) => /usr/lib/ (0x7fc7626fe000)
> would be more interesting..
> but even then we don't know what's going on
> (if is dlopened with RTLD_LOCAL
> then its libgobject dependency might not be visible
> to libswt-atk-gtk-4530)
OK. here is the story:

* java native interface: NativeLibrary.load()

* java JNI implementation:

* entry point: os::dll_load

* linux implementation

* and finally: it says: dlopen RTLD_LAZY:
void * result = ::dlopen(filename, RTLD_LAZY);
RTLD_LAZY: Perform lazy binding. Only resolve symbols as the code that
references them is executed.
If the symbol is never referenced, then it is never resolved.
(Lazy binding is only performed for function references;
references to variables are always immediately bound when the library is

RTLD_LAZY is good, right? :-)

Content of type "text/html" skipped

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.