--- Makefile.orig 2015-01-19 13:24:01.512893165 +0000 +++ Makefile 2015-01-19 13:24:23.844906601 +0000 @@ -23,15 +23,15 @@ # symbols and then link it dynamically so I have full # relocation information memtest_shared: $(OBJS) memtest_shared.lds Makefile - $(LD) --warn-constructors --warn-common -static -T memtest_shared.lds \ + $(LD) --warn-constructors --warn-common -static --oformat elf32-i386-freebsd -T memtest_shared.lds \ -o $@ $(OBJS) && \ - $(LD) -shared -Bsymbolic -T memtest_shared.lds -o $@ $(OBJS) + $(LD) -shared -Bsymbolic --oformat elf32-i386-freebsd -T memtest_shared.lds -o $@ $(OBJS) memtest_shared.bin: memtest_shared objcopy -O binary $< memtest_shared.bin memtest: memtest_shared.bin memtest.lds - $(LD) -s -T memtest.lds -b binary memtest_shared.bin -o $@ + $(LD) -s --oformat elf32-i386-freebsd -T memtest.lds -b binary memtest_shared.bin -o $@ head.s: head.S config.h defs.h test.h $(CC) -E -traditional $< -o $@ @@ -58,10 +58,8 @@ asm: @./makedos.sh -iso: - make all +iso: all ./makeiso.sh - rm -f *.o *.s memtest.bin memtest memtest_shared memtest_shared.bin install: all dd $(FDISK) bs=8192