summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSam Clegg <sbc@chromium.org>2023-11-27 11:42:23 -0800
committerGitHub <noreply@github.com>2023-11-27 11:42:23 -0800
commite0314900bcf19be95d59dfdf695874d966f4ef4a (patch)
tree8032efa4bc33ecc5ed31fcf11bbf8dd1677e1ba1 /src
parentc5db74cae9bc0c46065ad1ec9f3ec48772d09784 (diff)
downloadbinaryen-e0314900bcf19be95d59dfdf695874d966f4ef4a.tar.gz
binaryen-e0314900bcf19be95d59dfdf695874d966f4ef4a.tar.bz2
binaryen-e0314900bcf19be95d59dfdf695874d966f4ef4a.zip
[wasm-emscripten-finalize] Remove --separate-data-segments (#6091)
See #6088
Diffstat (limited to 'src')
-rw-r--r--src/tools/wasm-emscripten-finalize.cpp28
1 files changed, 0 insertions, 28 deletions
diff --git a/src/tools/wasm-emscripten-finalize.cpp b/src/tools/wasm-emscripten-finalize.cpp
index 5ec4d245e..39b9e8e3a 100644
--- a/src/tools/wasm-emscripten-finalize.cpp
+++ b/src/tools/wasm-emscripten-finalize.cpp
@@ -37,14 +37,11 @@
using namespace wasm;
int main(int argc, const char* argv[]) {
- const uint64_t INVALID_BASE = -1;
-
std::string infile;
std::string outfile;
std::string inputSourceMapFilename;
std::string outputSourceMapFilename;
std::string outputSourceMapUrl;
- std::string dataSegmentFile;
bool emitBinary = true;
bool debugInfo = false;
bool DWARF = false;
@@ -52,7 +49,6 @@ int main(int argc, const char* argv[]) {
bool legalizeJavaScriptFFI = true;
bool bigInt = false;
bool checkStackOverflow = false;
- uint64_t globalBase = INVALID_BASE;
bool standaloneWasm = false;
// TODO: remove after https://github.com/WebAssembly/binaryen/issues/3043
bool minimizeWasmChanges = false;
@@ -93,14 +89,6 @@ int main(int argc, const char* argv[]) {
WasmEmscriptenFinalizeOption,
Options::Arguments::Zero,
[&emitBinary](Options*, const std::string&) { emitBinary = false; })
- .add("--global-base",
- "",
- "The address at which static globals were placed",
- WasmEmscriptenFinalizeOption,
- Options::Arguments::One,
- [&globalBase](Options*, const std::string& argument) {
- globalBase = std::stoull(argument);
- })
.add("--side-module",
"",
"Input is an emscripten side module",
@@ -150,14 +138,6 @@ int main(int argc, const char* argv[]) {
[&outputSourceMapUrl](Options* o, const std::string& argument) {
outputSourceMapUrl = argument;
})
- .add("--separate-data-segments",
- "",
- "Separate data segments to a file",
- WasmEmscriptenFinalizeOption,
- Options::Arguments::One,
- [&dataSegmentFile](Options* o, const std::string& argument) {
- dataSegmentFile = argument;
- })
.add("--check-stack-overflow",
"",
"Check for stack overflows every time the stack is extended",
@@ -294,14 +274,6 @@ int main(int argc, const char* argv[]) {
passRunner.add("strip-dwarf");
}
- // Finally, separate out data segments if relevant
- if (!dataSegmentFile.empty()) {
- passRunner.options.arguments["separate-data-segments"] = dataSegmentFile;
- passRunner.options.arguments["separate-data-segments-global-base"] =
- std::to_string(globalBase);
- passRunner.add("separate-data-segments");
- }
-
passRunner.run();
BYN_TRACE_WITH_TYPE("emscripten-dump", "Module after:\n");