Thread with 12 posts

jump to expanded post

aha

ahahahaha

AHAHAHAHA

bin/clang \
    -target armv6-apple-ios2 \
    hello-world.c \
    -nostdlib \
    -Wl,-U,_puts,-U,start,-alias,_dyld_stub_binding_helper,dyld_stub_binding_helper \
    -o hello-world.dylib

IT WORKS. iT WORKS,,,,

FEAR ME!!!!!

Open thread at this post

that was the I AM A GENIUS

here is the OH NO:

ld64.lld: error: VANILLA relocation must be extern at offset -1577058268 of __TEXT,__text in โ€ฆhello-world-e3240e.o
ld64.lld: error: VANILLA relocation has width 1 bytes, but must be 0 bytes at offset -1577058268 of __TEXT,__text in โ€ฆhello-world-e3240e.o
ld64.lld: error: VANILLA relocation must be extern at offset -1593835520 of __TEXT,__text in โ€ฆhello-world-e3240e.o
ld64.lld: error: VANILLA relocation has width 1 bytes, but must be 0 bytes at offset -1593835520 of __TEXT,__text in โ€ฆhello-world-e3240e.o
Open thread at this post

i am pleased to announce that we are back. we are so back!!!

.\LLVM-11.0.1-win64\bin\clang.exe -fuse-ld=lld -target armv6-apple-ios2 hello-world.c -nostdlib "-Wl,-e,_main,-undefined,dynamic_lookup" -o hello-world -v

Open thread at this post

this is definitely the most perverted, obscene thing i've ever done with a compiler. to my friends who work at Apple, have worked at Apple, or are possessed of such a shining divine Purpose that they have accumulated more Apple knowledge than any Apple employee could possibly knowโ€ฆ you're allowed to kill me for this. well not really but

Open thread at this post

note: the resulting binary probably doesn't actually work on iOS, only in touchHLE. I could make it work on iOS but it would require some extra effort and I don't have a jailbroken iOS 6 device right now :)

Open thread at this post