Re: Version of dynamic library
site_archiver@lists.apple.com Delivered-To: darwin-kernel@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=Ahlc3Om4O8Fjq7Uof4SySQffXpsW13bVDfFL7ehd2D8=; b=HYtidRcPB33FNmP2fyq/uOz7M8b9LI0Fz3Bg5idtrC5T/9+Bsx9BfyU6CfMPUZCrUErpurXEoyjrQ1Avma8E3g9V8LvDof0eApz4jixvX2hJTV7GVJH78PNejcdodNqkBDzex0xJX6pcfhiCuSHSM7q+U+VgZwcbAYMjh8LJvfk= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=jyoY2zci3AOJmEMMOGP1NUmfBOdIuhJeyBn26feSM8cBO64vXraBbAAMsJVSeW/nYq42z0w4ARyTKtJv6L0XMxfz3UdzkfzVXlySFD1rYC6V3qxX4WQ3ee4xOcpQv5W1onKSmoMmGqWUaQ811LM6glMp0teaZbymG98Nd5jHxvE= Hi if you want a good example you can get it from lipo.c a part of odc tools (a long time ago maintened by Shantonu) I think your problem come from that you don't test if you have a fat binary or not and which arch is stored (if 1) if you wont be able to get the src (odc) on the Internet let me know Cheers! On Thu, Apr 10, 2008 at 3:36 AM, anukriti_shrimal <anukriti_shrimal@persistent.co.in> wrote:
Hi All,
I am currently working on Mac Os x 10.4.7
I am trying to retrieve the version of a dynamic library (.dylib) from its full path.
While investigating source code of dyld, I found that the mach_header or mach_header_64 contains the version information.
So, I tried to get the mach_header from the file contents.
But I was unable to do so.
Can anyone help me in this regard,
Is there some other way to accomplish the same task,
Thanks in advance,
Princess
_______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/darwin-kernel/openspecies%40gmail.com
This email sent to openspecies@gmail.com
-- -mmw _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.a... This email sent to site_archiver@lists.apple.com
participants (1)
-
mm w