Re: is it possible to find the target OS version from the binary?
Re: is it possible to find the target OS version from the binary?
- Subject: Re: is it possible to find the target OS version from the binary?
- From: Jean-Daniel Dupas <email@hidden>
- Date: Thu, 25 Nov 2010 11:23:23 +0100
Le 25 nov. 2010 à 10:57, Jonas Maebe a écrit :
>
> On 25 Nov 2010, at 06:50, Shantonu Sen wrote:
>
>> Please file an enhancement request describing the situations you would use this information, and how reliable the information has to be (for instance, if some object files are built with a deployment version of 10.5 and some 10.6, what should the final binary record?)
>
> Is that information part of individual object files? I thought the -mmacosx-version-min parameter was passed on to the linker, but not used otherwise by gcc or the the assembler.
>
The compiler use this flag to define the __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED macro which may change the code generation.
The most obvious example is symbols that are conditionally defined weak.
But it also change which symbols are used when there is available variants ($UNIX2003, $NOCANCEL, etc.)
-- Jean-Daniel
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden