We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e9d026 commit 8eef814Copy full SHA for 8eef814
lld/wasm/Driver.cpp
@@ -554,6 +554,11 @@ static void readConfigs(opt::InputArgList &args) {
554
config->zStackSize =
555
args::getZOptionValue(args, OPT_z, "stack-size", WasmPageSize);
556
557
+ // -Bdynamic by default if -pie or -shared is specified.
558
+ if (config->pie || config->shared) {
559
+ config->isStatic = false;
560
+ }
561
+
562
if (config->maxMemory != 0 && config->noGrowableMemory) {
563
// Erroring out here is simpler than defining precedence rules.
564
error("--max-memory is incompatible with --no-growable-memory");
0 commit comments