Bug 15841

Summary: [patch] Assembler syntax fixes for the boot programs.
Product: Base System Reporter: sepotvin <sepotvin>
Component: i386Assignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.0-CURRENT   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff
none
file.diff none

Description sepotvin 2000-01-02 16:10:01 UTC
Various assembler fixes for the boot programs. These were discovered
by binutils-2.9.5

Fix: main:         cld                             # String ops inc
                xorl %ecx,%ecx                  # Zero
!               movl %cx,%es                    # Address
!               movl %cx,%ds                    #  data
!               movl %cx,%ss                    # Set up
                movwir(start,_sp)               #  stack
                movl %esp,%esi                  # Source
                movwir(MEM_REL,_di)             # Destination
--- 60,68 ----

  main:         cld                             # String ops inc
                xorl %ecx,%ecx                  # Zero
!               movl %ecx,%es                   # Address
!               movl %ecx,%ds                   #  data
!               movl %ecx,%ss                   # Set up
                movwir(start,_sp)               #  stack
                movl %esp,%esi                  # Source
                movwir(MEM_REL,_di)             # Destination
Comment 1 John Baldwin freebsd_committer freebsd_triage 2000-05-24 12:56:44 UTC
State Changed
From-To: open->closed

Wish I had seen this earlier.  Not all of these changes were applicable 
to binutils 2.9.1 as gas(1) was badly broken in that version.  However, 
with the import of the new 2.10 version of gas(1), patches containing 
these changes and many others have been applied.  Thanks.