nlist on 64-bit platforms
site_archiver@lists.apple.com Delivered-To: darwin-dev@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:mime-version:content-type:content-transfer-encoding:content-disposition; bh=5/oGH1TbdI53gmbP4JNumP5A5+GM8isnlzVS8xGSv3k=; b=SuwovKhwPteGicJJD8eCBDB8T3t6KkyNmF8WFsHeNW9zz+AcAjKU2d8EdSD1+GiVD/R+K3zizynYh4RcZvlmsxEcAWgir9PVzOZF3U+bFhM5xIBuBAvUKXPx+Gq9XhDNQaResATEj5uq3ED6PcgB1TC3/DiZ2kourp9FoW6ahXI= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=xnC5MJEjc8IKblMf42eIhLVT75ytOKB+Rcod+bGzGsfGcMz4j4ZK5P4AJTJhSMYYVREU2YWB9ZXz7JfJ7wqBpg2SC/GL6Y6zILCXKIcn420hXmhMMEAt+EKcV9OZ2IqEMA6whkZqOsPOg1GbGYt1k88pi+lcVtG6/utK6fHpHbQ= Hi I noticed in libc/gen/nlist.c that nlist() is commented out for __LP64__ builds. I have ported it to work on both x86_64 & ppc64 platforms, however I am wondering how Apple envisions the caller getting the index into the string table to pass into the nlist_64 structure. I sort of hacked something together to suit my purposes - my nlist function takes a separate array of character arrays, which are used exactly like the n_name parameter of the 32-bit nlist structure, and I ignore the n_strx field. Will you expect calls to make a separate pass through the binary to find the index into the string table of the string they want, and then call nlist ? Thanks, Neal _______________________________________________ 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
participants (1)
-
Neal Sidhwaney