Move presentation

This commit is contained in:
Valentin Brandl
2019-12-27 14:50:08 +01:00
parent 8e3ffb88b1
commit 1b5b551ecb
6 changed files with 0 additions and 0 deletions

View File

@ -0,0 +1,10 @@
SRC=example.c
CC=gcc
build: nopie pie
nopie:
$(CC) -no-pie -o example.nopie example.c
pie:
$(CC) -pie -o example.pie example.c

View File

@ -0,0 +1,11 @@
#include<stdio.h>
void some_function() {
puts("Hello, world!\n");
}
int main() {
void (*function)() = &some_function;
printf("some_function is located at %p\n", function);
return 0;
}

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.