Well, tried on VC6 (link 6.00.8168): exactly the same behaviour,
even if I remove the three lines
Code:
#pragma code_seg(SECTION_NAME) // push not understood
#pragma comment(linker, "/SECTION:"SECTION_NAME",RWE")
__declspec(allocate(SECTION_NAME))
and put everyting in ".text" section
Regards, bilbo