/boot/mbr miscompiled?

From: Yuri Pankov <yuri.pankov_at_gmail.com>
Date: Wed, 6 Jun 2007 17:58:15 +0400
Hi,

I've noticed lately that I can't install /boot/mbr using boot0cfg.

[root_at_darklight:~]# boot0cfg -B -b /boot/mbr ad4
boot0cfg: /boot/mbr: unknown or incompatible boot code

-r--r--r--  1 root  wheel  - 512 Jun  6 17:45 /boot/mbr
/boot/mbr: x86 boot sector


That's how it's compiled here:
[root_at_darklight:/usr/src/sys/boot/i386/mbr]# make
as  --defsym FLAGS=0x80 --32 -o mbr.o /usr/src/sys/boot/i386/mbr/mbr.s
cc -O2 -fno-strict-aliasing -pipe  -ffreestanding
-mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse2
-mno-sse3 -m32 -march=i386  -N -e start -Ttext 0x600
-Wl,-S,--oformat,binary -nostdlib -m elf_i386_fbsd -o mbr mbr.o

It's -CURRENT/amd64 updated today.

Any hints?


Yuri
Received on Wed Jun 06 2007 - 11:58:43 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:11 UTC