summary refs log tree commit diff
path: root/src/doc
diff options
context:
space:
mode:
authorWANG Rui <wangrui@loongson.cn>2023-12-14 22:07:53 +0800
committerWANG Rui <wangrui@loongson.cn>2024-01-16 19:15:06 +0800
commit06a41687b160cbb4cbf8fce0b3ad3a2e352e8338 (patch)
treebdc2ea95832dbff1c740b08d7510048df8536fb8 /src/doc
parent94807670a6a3834cc9b71b0b803d49d307c9ba5d (diff)
downloadrust-06a41687b160cbb4cbf8fce0b3ad3a2e352e8338.tar.gz
rust-06a41687b160cbb4cbf8fce0b3ad3a2e352e8338.zip
Add unstable `-Z direct-access-external-data` cmdline flag for `rustc`
The new flag has been described in the Major Change Proposal at
https://github.com/rust-lang/compiler-team/issues/707
Diffstat (limited to 'src/doc')
-rw-r--r--src/doc/unstable-book/src/compiler-flags/direct-access-external-data.md16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/doc/unstable-book/src/compiler-flags/direct-access-external-data.md b/src/doc/unstable-book/src/compiler-flags/direct-access-external-data.md
new file mode 100644
index 00000000000..c72df437960
--- /dev/null
+++ b/src/doc/unstable-book/src/compiler-flags/direct-access-external-data.md
@@ -0,0 +1,16 @@
+# `direct_access_external_data`
+
+The tracking issue for this feature is: https://github.com/rust-lang/compiler-team/issues/707
+
+------------------------
+
+Option `-Z direct-access-external-data` controls how to access symbols of
+external data.
+
+Supported values for this option are:
+
+- `yes` - Don't use GOT indirection to reference external data symbols.
+- `no` - Use GOT indirection to reference external data symbols.
+
+If the option is not explicitly specified, different targets have different
+default values.