site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=CHVxRp6LbGtaemgsg1JLreXGNuhZQesPhnO6BeeTVru/aQSdtN9I9XxARtBncJ/XHHgcMBvGUDD4LU8Ka9mA6K/UD9wcDcgSAUslmvOEaLS4DPTG7HUhwQZnM6IaLyHVoDwTbcQKY9Ax2m5C+vvaag/f9AE8M3hi/kAp0KqzVEo= ; Has anyone figured out a way to infer the size of an object in the data segment of a Mach-O dynamic library? This is straight-forward under Linux – the dl_info struct, as returned by a call to dladdr(), has a “size_t dli_size” field that reports the size of the nearest symbol. My hope is that there’s an official API to do this, or at least an API that is likely to be supported in the future. My fall-back strategy is to store the size (using sizeof at compile time) in a related symbol. Clunky, but workable. thanks for your help, bcreane _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com