Skip to content

Commit

Permalink
Don't export unnecessary symbols in the dynamic symbol table
Browse files Browse the repository at this point in the history
  • Loading branch information
Amanieu committed Jan 11, 2022
1 parent 668258e commit 12894b9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/object/src/module.rs
Expand Up @@ -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,
Expand All @@ -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,
Expand Down Expand Up @@ -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,
Expand All @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit 12894b9

Please sign in to comment.