Skip to content

Commit 95225c9

Browse files
committed
Do not update flags of .atomvm_avm_info section
This will prevent objcopy from dammaging the binary on linux/arm64 Signed-off-by: Paul Guyot <pguyot@kallisys.net>
1 parent 15b3e59 commit 95225c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/atomvm_escriptize_provider.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ set_atomvm_avm_info(ObjCopyTool, Executable, SectionName, SectionSize) ->
445445

446446
ObjCopyCmd = lists:flatten(
447447
io_lib:format(
448-
"~s --update-section .atomvm_avm_info=~s --set-section-flags .atomvm_avm_info=alloc,load,readonly,data ~s",
448+
"~s --update-section .atomvm_avm_info=~s ~s",
449449
[ObjCopyTool, AVMInfoTempFile, Executable]
450450
)
451451
),

0 commit comments

Comments
 (0)