Hi,

i have an error when trying to compile grub 1.98 on MacOSX 10.6.2:

gcc-4.2 -Iboot/i386/pc -I./boot/i386/pc -I./include -I. -I./include -Wall -W -DASM_FILE=1 -nostdinc -fno-builtin -Os -DGRUB_MACHINE_PCBIOS=1 -Wall -W -Wshadow -Wpointer-arith -Wmissing-prototypes -Wundef -Wstrict-prototypes -g -falign-jumps=1 -falign-loops=1 -falign-functions=1 -mno-mmx -mno-sse -mno-sse2 -mno-3dnow -DAPPLE_CC=1 -fnested-functions -m32 -m32 -DGRUB_FILE=\"boot/i386/pc/diskboot.S\" -MD -c -o diskboot_img-boot_i386_pc_diskboot.o boot/i386/pc/diskboot.S gcc-4.2 -o diskboot.exec diskboot_img-boot_i386_pc_diskboot.o -nostdlib -m32 -nostdlib -nostdlib -static -Wl,-preload -Wl,-segalign,20 -Wl,-image_base,0x8000 ld_classic: diskboot_img-boot_i386_pc_diskboot.o illegal reference to debug section, from non-debug section (__TEXT,__text) via relocation entry (5) to section (__DWARF,__debug_line)
collect2: ld returned 1 exit status
make: *** [diskboot.exec] Error 1


If i had .byte 0 at the end of boot/i386/pc/diskboot.S the error is removed but the size of diskboot.img is 544 bytes instead of 512.

Best regards,
Yves Blusseau


Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to