 +        "-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),

+}  // namespace linux_sgx
+
+#endif  // _DEBUG_KEY_MRSIGNER_H_
diff -Nur /dev/null enclave.lds.tpl
--- /dev/null
+++ enclave.lds.tpl
@@ -0,0 +1,10 @@
+enclave.so
+{
+    global:
+        enclave_entry;
+        g_global_data;
+        {g_global_data_sim}
+        {g_peak_heap_used}
+    local:
+        *;
+};
