You have to add your own section to the linker file and define that it is not initialised. initialize by copy { rw, ro section D, ro section D_1, ro section D_2 }; initialize by copy with packing = none { section __DLIB_PERTHREAD }; do not initialize { section .*.noinit, rw section MYOWNSECTION }; define block HEAP with alignment = 4, size = _HEAP_SIZE { }; define block USTACK with alignment = 4, size = _USTACK_SIZE { }; define block ISTACK with alignment = 4, size = _ISTACK_SIZE { }; define block STACKS with fixed order { block ISTACK, block USTACK }; place at address mem:0xFFFFFF80 { ro section .nmivec }; "ROM16":place in ROM_region16 { ro section .code16*, ro section .data16* }; "RAM16":place in RAM_region16 { rw section .data16*, rw section __DLIB_PERTHREAD, rw section MYOWNSECTION };
↧