# For Fuchsia, we must not export anything other than loader-related API
# There is also the vk_icdInitializeConnectToServiceCallback entry point
# that is specific to the Fuchsia Vulkan loader implementation.
{
global:
	vkGetInstanceProcAddr;

	# Loader-ICD interface functions
	vk_icdGetInstanceProcAddr;
	vk_icdNegotiateLoaderICDInterfaceVersion;
	vk_icdInitializeConnectToServiceCallback;

local:
	*;
};


# For Fuchsia, we must not export anything other than loader-related API
# There is also the vk_icdInitializeConnectToServiceCallback entry point
# that is specific to the Fuchsia Vulkan loader implementation.
{
global:
	# Loader-ICD interface functions
	vk_icdGetInstanceProcAddr;
	vk_icdNegotiateLoaderICDInterfaceVersion;
	vk_icdInitializeConnectToServiceCallback;

local:
	*;
};


Remove vkGetInstanceProcAddr from exported symbols on Fuchsia

Fuchsia only allows access to the ICD's functions, through the Vulkan
Loader interface functions.

Exporting this function was copied from the android_vk_swiftshader.lds
file, but it has been removed from the latter due to causing direct
access to methods that should have an overridden implementation. Similar
issues are likely to occur on Fuchsia if we keep this function exported.

Bug: b/148822450
Change-Id: I12f2dad933abcd9dbf89518ac5714b9f936419e4
Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/53609
Kokoro-Result: kokoro <2ac7b1f3fa578934c95181d4272be0d3bca00121@google.com>
Reviewed-by: David Turner <dcb93bd72059500c1226ad16fdd58ffe25c9e0ea@google.com>
Reviewed-by: Nicolas Capens <51edc787c30f24c4904e8ffbb5523c3a9f7a451d@google.com>
Tested-by: Nicolas Capens <51edc787c30f24c4904e8ffbb5523c3a9f7a451d@google.com>
