summaryrefslogtreecommitdiff
path: root/Cargo.lock
diff options
context:
space:
mode:
authorDivy Srivastava <dj.srivastava23@gmail.com>2022-10-06 08:50:00 -0700
committerGitHub <noreply@github.com>2022-10-06 21:20:00 +0530
commitcd1c63ad71965df6ee95d156fd17271177bd50c8 (patch)
tree724d0f8ecd30edb42e99d3ece730d8cea1f6efab /Cargo.lock
parent9102ba9b0f50ba1fe4f13111ec66ac4e09ba2db4 (diff)
fix(build): don't export all symbols to dynamic symbol table (#16171)
Currently, we use `-rdynamic` for exporting Node API symbols to the symbol table. `-rdynamic` will export *all* symbols, that means previously unused functions will not be optimized away introducing a lot of binary bloat. This patch uses `-exported_symbol` and `--export-dynamic-symbol` link flags (not as universal as `-rdynamic`) to only mark Node API symbols to be put in the dynamic symbol table.
Diffstat (limited to 'Cargo.lock')
-rw-r--r--Cargo.lock1
1 files changed, 1 insertions, 0 deletions
diff --git a/Cargo.lock b/Cargo.lock
index 071665eb5..988fe6269 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -869,6 +869,7 @@ dependencies = [
"rustyline-derive",
"semver 1.0.14",
"serde",
+ "serde_json",
"serde_repr",
"shell-escape",
"tar",