main.c 374 B

12345678910111213141516171819202122
  1. /*
  2. * Copyright 2022 Yury Gribov
  3. *
  4. * The MIT License (MIT)
  5. *
  6. * Use of this source code is governed by MIT license that can be
  7. * found in the LICENSE.txt file.
  8. */
  9. #include <dlfcn.h>
  10. int main() {
  11. dlopen("libinterposed.so", RTLD_GLOBAL | RTLD_LAZY);
  12. #ifdef SHLIB
  13. extern void shlib_test();
  14. shlib_test();
  15. #else
  16. extern void test();
  17. test();
  18. #endif
  19. return 0;
  20. }