Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Re: -mno-red-zone for 64-bit drivers?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: -mno-red-zone for 64-bit drivers?




On Oct 15, 2009, at 8:32 PM, Michael Crawford wrote:

What about Mac OS X?  Does OS X kernel code need -mno-red-zone?  If
the red zone is to be enabled, could some of Apple's kernel code be
failing to honor it?

From gcc(1):

       -mkernel
           Enable kernel development mode.  The -mkernel option sets -static, -fno-common, -fno-builtin,
           -fno-cxa-atexit, -fno-exceptions, -fno-non-call-exceptions, -fno-asynchronous-unwind-tables, -fapple-kext,
           -fno-weak and -fno-rtti where applicable.  This mode also sets -mno-altivec, -msoft-float and -mlong-branch
           for PowerPC targets, -mno-red-zone on x86_64, 

You should check your build log to verify that -mkernel is being passed when your kext is compiled.

If you are building with Xcode and it's not, or you are getting different code generation between specifying it manually and otherwise (check your object files) then you should file a bug.

 = Mike

--
Ars longa, vita brevis, occasio praeceps, experimentum periculosum, iudicium difficile -- Hippocrates






 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-drivers mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >-mno-red-zone for 64-bit drivers? (From: Michael Crawford <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.