From: Philosopher DOT bbs AT cszone DOT cc DOT ntu DOT edu DOT tw (阿哲) Newsgroups: comp.os.msdos.djgpp Subject: Bug in DJGPP generated COFF images Date: 27 Dec 1998 08:40:12 GMT Organization: 程式設計樂園(CSZone) Lines: 25 Message-ID: <3SFI2D$Pu_@cszone.cc.ntu.edu.tw> NNTP-Posting-Host: cszone.cc.ntu.edu.tw X-Filename: n.djgpp/M.914748013.A To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com gcc: 2.8.1 I use ld with option --oformat coff-go32 to generate COFF images. unsigned char* pVideo=(unsigned char*)0x000b8000; unsigned char j='Z'; However, the above codes don't work at all, i.e., the pVideo does not point to 0x000b8000. If modify the above codes to the following: unsigned char* pVideo; unsigned char j; pVideo=(unsigned char*)0x000b8000; j='A'; Now, pVideo does point to 0x000b8000. Is there anything wrong with COFF images generated by ld? -- ※ Origin: 程式設計樂園 ◆ From: titan.ee.ntu.edu.tw