Skip to content

Commit

Permalink
Put back no-text flags, it's still needed
Browse files Browse the repository at this point in the history
  • Loading branch information
ptitSeb committed Feb 23, 2022
1 parent ffc559a commit a69e944
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/engine-dylib/src/artifact.rs
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,11 @@ impl DylibArtifact {
Triple::host().to_string(),
);

let notext = match (target_triple.operating_system, target_triple.architecture) {
(OperatingSystem::Linux, Architecture::X86_64) => vec!["-Wl,-z,notext"],
_ => vec![],
};

let linker = engine_inner.linker().executable();
let output = Command::new(linker)
.arg(&filepath)
Expand All @@ -409,6 +414,7 @@ impl DylibArtifact {
.args(&target_args)
// .args(&wasmer_symbols)
.arg("-shared")
.args(&notext)
.args(&cross_compiling_args)
.arg("-v")
.output()
Expand Down

0 comments on commit a69e944

Please sign in to comment.