Comment 2 for bug 1723042

Revision history for this message
lplewa (lplewa) wrote :

This issue affects the PMDK project - https://github.com/pmem/issues/issues/806

Minimal reproduction:
$ cat test.c
#include <libkmod.h>

int foo() {
 kmod_ref((void *)0);
 return 0;
}
cat main.c
void foo (void);
int main () {
 foo();
 return 0;
}
$ gcc -fPIC -c -o test.o test.c
$ gcc -shared -fPIC -o libfoo.so test.o -lc -lkmod
$ gcc -L. -o main.o main.c -lfoo -pthread
$ LD_LIBRARY_PATH=. ./main.o
./main.o: Relink `/lib/x86_64-linux-gnu/libkmod.so.2' with `/lib/x86_64-linux-gnu/libpthread.so.0' for IFUNC symbol `system'