Remove use of dyld_register_image_state_change_handler() in PluginProcessMac.mm
authorandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 17 Mar 2016 21:01:21 +0000 (21:01 +0000)
committerandersca@apple.com <andersca@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 17 Mar 2016 21:01:21 +0000 (21:01 +0000)
commitadfbe3869c9548299b97e4c8113b4d5e9ce1b017
treeaaa4485004b25d78539d938cb07270b313d78bf7
parentaa8d1de2223ffa063b9b0dc6741c4b0fc0795834
Remove use of dyld_register_image_state_change_handler() in PluginProcessMac.mm
https://bugs.webkit.org/show_bug.cgi?id=155596

Reviewed by Dan Bernstein.

Use _dyld_register_func_for_add_image instead which is API. Use dladdr to find the image path given its header.

* Platform/spi/Cocoa/DyldSPI.h: Removed.
* PluginProcess/mac/PluginProcessMac.mm:
(WebKit::PluginProcess::platformInitializeProcess):
* WebKit2.xcodeproj/project.pbxproj:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@198352 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebKit2/ChangeLog
Source/WebKit2/Platform/spi/Cocoa/DyldSPI.h [deleted file]
Source/WebKit2/PluginProcess/mac/PluginProcessMac.mm
Source/WebKit2/WebKit2.xcodeproj/project.pbxproj