Skip to content

Commit b960e51

Browse files
authored
Explicitly pass --no-stack-first to the linker. NFC (#25717)
This is in preparation for the default change on the llvm side. See llvm/llvm-project#151015
1 parent 51c136f commit b960e51

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tools/building.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,8 +266,12 @@ def lld_flags_for_executable(external_symbols):
266266
# function like we do in STANDALONE_WASM mode.
267267
cmd += ['--no-entry']
268268

269+
# The default for `--stack-first` is transitioning from disabled to
270+
# enabled. So be explicit in all cases for now.
269271
if settings.STACK_FIRST:
270272
cmd.append('--stack-first')
273+
else:
274+
cmd.append('--no-stack-first')
271275

272276
if not settings.RELOCATABLE:
273277
cmd.append('--table-base=%s' % settings.TABLE_BASE)

0 commit comments

Comments
 (0)