File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 1+ # iOs standalone encryption not working in LiveCode 7.0
Original file line number Diff line number Diff line change @@ -69,10 +69,11 @@ sub trim
6969 $symbol =~ s / :$// ;
7070
7171 $symbolExterns .= " extern \" C\" void *$symbol ;\n " ;
72- $symbolEntries .= " { \" $symbol \" , $symbol },\n " ;
72+ $symbolEntries .= " { \" $symbol \" , & $symbol },\n " ;
7373}
7474
7575print STDOUT $symbolExterns ;
76+ output " extern \" C\" {" ;
7677output " struct LibExport { const char *name; void *address; };" ;
7778output " struct LibInfo { const char **name; struct LibExport *exports; };" ;
7879output " static const char *__libexternalname = \" $name \" ;" ;
@@ -86,7 +87,8 @@ sub trim
8687output " &__libexternalname," ;
8788output " __libexports" ;
8889output " };" ;
89- output " LibInfo *__libinfoptr_$name = &__libinfo;" ;
90+ output " __attribute((section(\" __DATA,__libs\" ))) volatile struct LibInfo *__libinfoptr_revsecurity = &__libinfo;" ;
91+ output " };" ;
9092
9193sub output
9294{
You can’t perform that action at this time.
0 commit comments