mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
gcc: neverbuild, Buildroot can rebuild it :-)
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
/* https://github.com/cirosantilli/linux-kernel-module-cheat#your-first-binutils-hack */
|
||||
|
||||
#include <assert.h>
|
||||
#include <inttypes.h>
|
||||
|
||||
|
||||
13
userland/gcc_hack.c
Normal file
13
userland/gcc_hack.c
Normal file
@@ -0,0 +1,13 @@
|
||||
/* https://github.com/cirosantilli/linux-kernel-module-cheat#your-first-gcc-hack */
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
int main(void) {
|
||||
int i = 1;
|
||||
int j = 1;
|
||||
i++;
|
||||
j--;
|
||||
printf("i = %d\n", i);
|
||||
printf("j = %d\n", j);
|
||||
}
|
||||
Reference in New Issue
Block a user