From 12894b97fcfc51ffeb5d82c967387c71f871a037 Mon Sep 17 00:00:00 2001 From: Amanieu d'Antras Date: Tue, 11 Jan 2022 21:28:20 +0000 Subject: [PATCH] Don't export unnecessary symbols in the dynamic symbol table --- lib/object/src/module.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/object/src/module.rs b/lib/object/src/module.rs index 4094ca08752..a2323e19d6b 100644 --- a/lib/object/src/module.rs +++ b/lib/object/src/module.rs @@ -161,7 +161,7 @@ pub fn emit_compilation( value: 0, size: custom_section.bytes.len() as _, kind: SymbolKind::Data, - scope: SymbolScope::Compilation, + scope: SymbolScope::Linkage, weak: false, section: SymbolSection::Section(section_id), flags: SymbolFlags::None, @@ -181,7 +181,7 @@ pub fn emit_compilation( value: 0, size: custom_section.bytes.len() as _, kind: section_kind, - scope: SymbolScope::Dynamic, + scope: SymbolScope::Linkage, weak: false, section: SymbolSection::Section(section_id), flags: SymbolFlags::None, @@ -209,7 +209,7 @@ pub fn emit_compilation( value: 0, size: function.body.len() as _, kind: SymbolKind::Text, - scope: SymbolScope::Dynamic, + scope: SymbolScope::Linkage, weak: false, section: SymbolSection::Section(section_id), flags: SymbolFlags::None, @@ -229,7 +229,7 @@ pub fn emit_compilation( value: 0, size: function.body.len() as _, kind: SymbolKind::Text, - scope: SymbolScope::Dynamic, + scope: SymbolScope::Linkage, weak: false, section: SymbolSection::Section(section_id), flags: SymbolFlags::None, @@ -247,7 +247,7 @@ pub fn emit_compilation( value: 0, size: function.body.len() as _, kind: SymbolKind::Text, - scope: SymbolScope::Dynamic, + scope: SymbolScope::Linkage, weak: false, section: SymbolSection::Section(section_id), flags: SymbolFlags::None,