9a9b91c940
It's finally done.. Signed-off-by: kaguya <vpshinomiya@protonmail.com>
17 lines
276 B
C
17 lines
276 B
C
#include <dlfcn.h>
|
|
|
|
typedef char *charFn(void);
|
|
|
|
__attribute__((weak))
|
|
char *definedInBoth() {
|
|
return "bar";
|
|
}
|
|
|
|
charFn *barGetDefault() {
|
|
return (charFn *)dlsym(RTLD_DEFAULT, "definedInBoth");
|
|
}
|
|
|
|
charFn *barGetNext() {
|
|
return (charFn *)dlsym(RTLD_NEXT, "definedInBoth");
|
|
}
|