By default, Bugzilla does not search the list of RESOLVED bugs.
You can force it to do so by putting the upper-case word ALL in front of your search query, e.g.: ALL tdelibs
We recommend searching for bugs this way, as you may discover that your bug has already been resolved and fixed in a later release. View | Details | Raw Unified | Return to bug 900
Collapse All | Expand All

(-)lib_vinegret/executable.c (+2 lines)
Lines 5-9 int main() Link Here
5
{
5
{
6
    libv1_user_func();
6
    libv1_user_func();
7
    libv2_user_func();
7
    libv2_user_func();
8
    libv1_user_func();
9
    libv2_user_func();
8
    return 0;
10
    return 0;
9
}
11
}
(-)lib_vinegret/lib_v2_user_scoper.c (+20 lines)
Line 0 Link Here
1
#include <stdio.h>
2
#include <dlfcn.h>
3
4
void *lib_v2_user;
5
void (*libv2_user_orig)();
6
7
void __init()
8
{
9
    lib_v2_user = dlopen("./lib_v2_user.so", RTLD_LAZY|RTLD_DEEPBIND);
10
    if (lib_v2_user) {
11
        *(void **)(&libv2_user_orig) = dlsym(lib_v2_user, "libv2_user_func");
12
    } else {
13
        fprintf(stderr, "%s\n", dlerror());
14
    }
15
}
16
17
void libv2_user_func()
18
{
19
    (*libv2_user_orig)();
20
}
(-)lib_vinegret/Makefile (-1 / +4 lines)
Lines 15-21 lib_v1_user.so: lib_v1_user.c lib_v1.so Link Here
15
lib_v2_user.so: lib_v2_user.c lib_v2.so
15
lib_v2_user.so: lib_v2_user.c lib_v2.so
16
	gcc $(shared) $(rpath) $^ -o $@
16
	gcc $(shared) $(rpath) $^ -o $@
17
17
18
executable: executable.c lib_v1_user.so lib_v2_user.so
18
lib_v2_user_scoper.so: lib_v2_user_scoper.c lib_v2_user.so
19
	gcc $(shared) $(rpath) -Xlinker -init=__init $< -ldl -o $@
20
21
executable: executable.c lib_v1_user.so lib_v2_user_scoper.so
19
	gcc $(rpath) $^ -o $@
22
	gcc $(rpath) $^ -o $@
20
23
21
clean:
24
clean:

Return to bug 900