17 lines
193 B
C
17 lines
193 B
C
|
struct Foo {
|
||
|
int bar;
|
||
|
int baz;
|
||
|
};
|
||
|
|
||
|
__attribute__ ((visibility ("default")))
|
||
|
int main() {
|
||
|
struct Foo foo;
|
||
|
|
||
|
foo.bar = 31337;
|
||
|
foo.baz = 255;
|
||
|
|
||
|
*(struct Foo*)0x200 = foo;
|
||
|
|
||
|
return 0;
|
||
|
}
|