 +        "-Wl,-pie,-eenclave_entry",
 +        "-Wl,--defsym,__ImageBase=0",
 +        "-Wl,--export-dynamic",
-+        "-Wl,--version-script",
-+        "$(location %s)" % lds_label,
 +    ]
 +    kwargs["linkshared"] = 1
 +    kwargs["linkstatic"] = 1
 +
 +    kwargs["tags"] = kwargs.get("tags", []) + sgx_tags()
 +    kwargs["deps"] = kwargs.get("deps", []) + [
-+        lds_label,
-+        "@linux_sgx//:intel_runtime",
++        "@linux_sgx//:enclave_lds",
 +    ]
 +
 +    # Create rule to build unsigned enclave.

diff -Nur /dev/null BUILD
--- /dev/null
+++ BUILD
@@ -0,0 +1,1341 @@
+# linux-sgx is the Intel SGX SDK
+
+load(":sgx_sdk.bzl", "asylo_sgx_backend", "sgx")
+
+# "notice" licenses present:
+# BSD (Intel SGX SDK, libunwind, libcxxrt),

+
+exports_files([
+    "License.txt",
+    "enclave.lds.tpl",
+    "enclave_test_private.pem",
+    "sgx_sdk.bzl",
+])
