Skip to content

Commit dd8c4f3

Browse files
committed
short: prevent potential aberrant shortening
1 parent 62e4d4f commit dd8c4f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/static-pie-gen.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@
121121

122122
# template
123123
template_candidates = [template_path]
124-
if lang_name == "Rust" and "x86_64" in target_name and "short" in template_path:
124+
if lang_name == "Rust" and "x86_64" in target_name and "short" in template_path and len(memory_bin) <= 4096:
125125
template_candidates.append(template_path.replace("short", "shorter"))
126126

127127
out = None

0 commit comments

Comments
 (0)