Kitlith
Kitlith
on windows, would it be possible to download to another file, exec into a seperate exe/batch script, move the file, and then exec back? EDIT: or, i suppose a seperate...
so, RE binary dump stuff: here's roughly code I used along with the contents of this PR: https://gist.github.com/kitlith/a26a1021c268b34bef60d57cfc6cc19f#file-wasm_lib-rs-L32-L46 -- if you want to follow along I can make some effort...
So, something I just kinda realized is that afaict this PR basically makes `SectionDecl` subsume all the other Decls, to the point where all the others are basically `SectionDecl`s w/...
Breaking change ideas: DefinedDecl kinda goes away, as it's been subsumed by SectionDecl, as does FunctionDecl and DataDecl (edit: or we could rename SecitonDecl to DefinedDecl). The impls on Decl...
How can you specify a RWX section? EDIT: not quite so simple... Mach-o files have the concept of segments, which, among other things, specify the maximum and initial memory protections...
Okay, so I should add write flags to FunctionDecl is what I'm hearing? (and then write tests to prove that it's possible?) Or am I misunderstanding? And then there's the...
We discussed it, but I never got a definitive answer so I held off on implementing. After all, adding stuff is a minor release, but removing stuff is a breaking...
I found a way to make this work for mach-o: LC_LINKER_OPTION allows us to embed linker options inside our binary. combine this with the segprot linker option (`-segprot segname max_prot...
Those are, afaik, *segment* flags, not section flags. And since there is only one segment in intermediate object files, there's no way to specify the permissions for custom segments. This...
technically, emitting a "__TEXT" segment instead of "" is already off spec (unless i've completely missed something and this doesn't generate intermediate object files, but executables) -- and while I...