Hi Craig,
first off, thank you for your quick reply - it has helped a lot. I had already checked the "elimination" checkbox, hence I proceeded straight to following your instructions and modified the linker script, removing as little as possible. To summarise, I made the following modifications:
1) set $LIBRARIES to nothing
2) removed CRT_HDR from the $OBJECTS definition and commented out the CRT_HDR defs
3) commented out the following (otherwise linker error):
#ifdef __MEMINIT__
seg_rth PM
#else
dxe_iv_code PM
#end if
{
INPUT_SECTIONS(CRT_HDR(iv_code))
} > mem_iv_code
What exactly am I doing here? I'm not sure what the section label "iv_code" is (can't find it in the manual), nor do I know what seg_rth or dxe_iv_code mean. Will this cause parts of my program to be placed incorrectly into memory?
Other than that the program compiles and only the _main label defined in my .asm file is found in the executable. So thank you very much for that already.
Kind regards,
Chris