VirtualBox

Changeset 1401

Show
Ignore:
Timestamp:
03/12/07 05:13:51 (2 years ago)
Author:
vboxsync
Message:

Mach-O/Yasm .bss section fix (it must be last, so declare everything else up front).

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/include/iprt/asmdefs.mac

    r1190 r1401  
    123123 
    124124; 
    125 ; Do OMF segment definitions 
     125; Do OMF and Mach-O/Yasm segment definitions 
     126
     127; Both format requires this to get the segment order right, in the Mach-O/Yasm case 
     128; it's only to make sure the .bss section ends up last (it's not declared here). 
    126129; 
    127130%ifdef ASM_FORMAT_OMF 
     
    170173 ; Make the TEXT32 segment default. 
    171174 segment TEXT32 
     175%endif 
     176 
     177%ifdef ASM_FORMAT_MACHO 
     178 %ifdef __YASM__ 
     179 [section .text] 
     180 [section .data] 
     181 %endif 
    172182%endif 
    173183 

© 2008 Sun Microsystems, Inc.
ContactPrivacy policy