diff --git a/test.c b/test.c new file mode 100644 index 0000000..45bf217 --- /dev/null +++ b/test.c @@ -0,0 +1,19 @@ +#include + +void puts2() { + asm("pop %rbp"); + goto *(&puts); + //return 0; +} + +void printf2() { + asm("pop %rbp"); + goto *(&printf); +} + +int main (int argc, char **argv) { + //puts2(argv[1]); + puts2(argv[0]); + printf2("%i hello %s %s\n", argc, argv[0], "yeetcreeper"); + return 0; +}