please stop.
-
-
-
did you know clang has an x64 Windows ABI Mach-O target.
-
what. the. fuck.
-
UEFI on Mac. also these Mach-O files are linked together and then there's a script that turns them into PE with what is functionally a sed script
-
do you know where I can find said script?
-
somewhere in darwin sources iirc
End of conversation
New conversation -
-
-
Maybe the other way around, ELF is nice and flexible as a .o format but has way too many bells and whistles as an image format
-
I wrote a few ELF loaders and I'm not sure I agree.
-
I guess static ELF isn't too bad, but shared images leave too much relocatable at load time IMO and have weird things like "copy exactly this many bytes into the executable"
-
hmm, I wrote a (restricted) .so loader as well, can you elaborate?
-
Like, the standard thing when your executable is non-PIE and it references a data symbol from a .so is to COPY the data to a fixed address in the executable and relocate the symbol in the .so, instead of going through the GOT/import table like you typically would on mac/windows
-
which dirties a bunch of memory, penalizes the code in the .so that has to indirectly reference even its own symbols, and hardcodes the size of objects in the .so
-
oh wtf this is wrong my loader was accessible exclusively via dlopen() so i didn't hit that
-
My case, when I was looking at the specs, I saw enough "weird stuff" with ELF SO loading that I mostly stuck with PE/COFF for my uses. PE is kind of an ugly format, but its handling of dynamic linking is straightforward. Granted, static-linked ELF is fairly straightforward.
End of conversation
New conversation -
-
-
what was that project that needs to build 1 file with gcc on windows, then binary-patches gcc's object file to be compatible with msvc for linking again?
-
bytecode virtual machine for some language, it needed computed goto
End of conversation
New conversation -
-
-
the deviation also known as "reverse UEFI"
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
UHG, why would you do that and not the opposite (which is what I've been telling midipix they should do)?
-
Ya. I’ve been outputting PE/COFF executables for UEFI using ELF relocatable objects as the Intermediate format. gnu-efi does this quite well.
End of conversation
New conversation -
-
-
Is it out-of-box for some linker or you had to write it from scratch?
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.