Results 238 comments of Kitlith

> I find it hard to believe you can’t write self modifying code on mach though, but maybe. This is representable in *executable* files, just not in *object* files, which...

@m4b have any comments on how to proceed here? (since you wished i had pinged sooner on the other PR)

My initial reservation about merging this came from not being able to find a way to implement this feature for mach-o. I then found a way, but still had/have reservations...

well, at least in my case, I don't need to do any actual linking. i just need a way to specify the memory location of section(s) and specify an entry...

essentially, i have a pre-linked blob that loads at a static address. what i want is an executable, not an object file per-se. The difference between the two files I...

that might be reasonable for me to do. I'll also need to assign the section an address, but it shouldn't be too difficult to do on top of that.

Ah, a program header is also missing. I bet that's (part of?) the """extra padding""" i mentioned. It specifies the load address of the section, etc. I could... append this...

I have a working incantation: https://gist.github.com/kitlith/a26a1021c268b34bef60d57cfc6cc19f#file-wasm_lib-rs-L50-L83 Nevertheless, I think it would be nice if we could instruct faerie to generate program headers of some sort. EDIT: yeah i'm pretty sure...

Heh, looking through the code I got really confused, because SectionBuilder exists, and allows arbitrary permission setting. It's just per-format and private... which makes sense. For a moment I thought...

"we can't even add symbols to anything other than a SectionDecl" is my sticking point here, i *need* to be able to specify symbols at arbitrary points in the section....