When I try to link a strata:/home/dr2867/c/modules 1026 $$$ ->as --version GNU assembler 2.15 [FreeBSD] 2004-05-23 Copyright 2002 Free Software Foundation, Inc. This program is free software; you may redistribute it under the terms of the GNU General Public License. This program has absolutely no warranty. This assembler was configured for a target of `i386-obrien-freebsd'. strata:/home/dr2867/c/modules 1027 $$$ ->gcc --version gcc (GCC) 3.4.6 [FreeBSD] 20060305 Copyright (C) 2006 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
strata:/home/dr2867/c/modules 1028 $$$ ->ld --version GNU ld version 2.15 [FreeBSD] 2004-05-23 Copyright 2002 Free Software Foundation, Inc. This program is free software; you may redistribute it under the terms of the GNU General Public License. This program has absolutely no warranty. strata:/home/dr2867/c/modules 1029 $$$ ->uname -a FreeBSD strata.xxxxxxxxxxxxxx.org 6.2-RELEASE FreeBSD 6.2-RELEASE #0: Thu Feb 8 11:00:11 PST 2007 [EMAIL PROTECTED] :/usr/obj/usr/src/sys/STRATA i386 strata:/home/dr2867/c/modules 1030 $$$ -> strata:/home/dr2867/c/modules 1032 $$$ ->gcc -N -Ttext 0x7c00 -Wl,-S,--oformat,binary -o cmbr cmbr.s gcc: Internal error: Segmentation fault: 11 (program ld) Please submit a full bug report. See <URL:http://gcc.gnu.org/bugs.html> for instructions. strata:/home/dr2867/c/modules 1033 $$$ ->cat cmbr.s # # Custom USB Master Boot Record # # All this does is print a message and hangs # the computer. # # **** WARNING **** # Watch out for software engineers with a sense # of humor. ;-) # .set LOAD, 0x7c00 # Load Address .set STACK, 0x7b00 # Stack Address .set PTOFF, 0x1be # Partition Table Offset .set MAGIC, 0xaa55 # Magic Code for Bootable Sector .global main # Entry Point .code16 # set the segment registers for flat memory access # Set the segment registers for our operations main: cld # String Operations Increment xorw %ax, %ax # Zero AX movw %ax, %es # and copy it to ES reg movw %ax, %ds # then the DS reg movw %ax, %ss # and SS reg too movw $STACK, %sp # Set the stack pointer set_msg: movw $msg_nb, %si # Set the message to display # Display a message on the console disp_msg: lodsb testb %al, %al jz hang_system movw $0x0007, %bx movb $0x0e, %ah int $0x10 jmp disp_msg # Hang the system hang_system: jmp hang_system msg_nb: .asciz "Device not bootable" .org PTOFF-1, 0x90 flags: .byte 0x00 partbl: .fill 0x10, 0x4, 0x00 .word MAGIC -- Daniel Rudy Why geeks like computers: look chat date touch grep make unzip strip view finger mount fcsk more fcsk yes spray umount sleep _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils