3 ms·
Awesome! Thank you for your advice. Either way, I am proceeding with the rest by using what someone else recommended I do, which is use `gcc -nostartfiles`. Lo
by arjie 13y ago
Awesome! Thank you for your advice.
Either way, I am proceeding with the rest by using what someone else recommended I do, which is use `gcc -nostartfiles`. Looking at gcc in verbose mode reveals an ld command line I could use to run his code without modification:
ld nothing.o -o nothing -e _main -dynamic-linker /lib64/ld-linux-x86-64.so.2 -lc
For some reason, `/lib/ld64.so.2` is not linked to `/lib64/ld-linux-x86-64.so.2` even though `ld` on Linux seems to look there by default (and fails because none of the mainstream distributions make that link).