What am I doing wrong here? $ echo 'int foo() { return 42; }' | i386-elf-gcc -c -o foo.o -x c - -fPIC $ i386-elf-gcc -shared -o http://libfoo.so foo.o This gives a warning about not finding _start and produces an executable not a shared library.
The extent to which it's supported varies by arch. For x86_64 it likely won't work without compiling for huge model or whatever.
-
-
And in musl it's pretty much entirely unsupported on archs except on 32-bit x86 for historical reasons. Not sure about glibc on non-x86 archs.
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.