[parisc-linux] elf/resolvfail

Matthew Wilcox matthew@wil.cx
Sun, 20 May 2001 05:22:42 +0100


Here's what resolvfail does:

static const char obj[] = "testobj1.so";

int main (void) {
  void *d = dlopen (obj, RTLD_LAZY);
  int n;

  if (d == NULL) {
      printf ("cannot load %s: %s\n", obj, dlerror ());
      return 1;
  }
[...]

and it outputs:

cannot load testobj1.so: /home/willy/cvs/glibc-C/elf/testobj1.so: undefined symbol: foo

nm testobj1.so:
                 U foo

but i would have throught that RTLD_LAZY would mean that it didn't have to
resolve foo immediately, only when it was used.  Can someone explain what's
supposed to happen here?

-- 
Revolutions do not require corporate support.