added linker file
added BSS section etc.
moved some fields to static variables