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.
I'm guessing the bare metal targets lack specfiles for dynamic linking configuration.
-
-
That makes sense. I probably should have just used a VM rather than a cross compiler since all I really wanted was to look at some -fno-pic shared objects with run-time relocations which I hadn't even realized was supported before tonight.
-
I ran across
@elibendersky's old blog post on the topic. https://eli.thegreenplace.net/2011/08/25/load-time-relocation-of-shared-libraries …
End of conversation
New conversation -
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.