[ ] Thursday, 8 October 2015 [ ]

DOS

How to build DOS COM files with GCC was an interesting blog - so I gave it ago.

The following error is due to OpenBSD design to not allow cross compilation:

/usr/bin/ld: warning: i386 architecture of input file `/tmp//ccTXL4Up.o' is incompatible with i386:x86-64 output
although it built okay on i386 it was still failing to link
hello.c:(.text+0x36): undefined reference to `_GLOBAL_OFFSET_TABLE_'
collect2: ld returned 1 exit status

More ld foo required…

clang-libdos looks like another approach.

Space Weather

dos


$Id: diary,v 1.38 2025/01/01 22:43:54 fred Exp $