Thank you jefro for the welcome.
The question was that:
Running
would return error
Code:
-bash: ./program: No such file or directory
But running
Code:
$ /lib/ld-linux.so.2 ./program
would work.
'program' was assembled with as(1) and linked with
Code:
$ ld -dynamic-linker /lib/ld-linux.so -lc -o program program.o
I had found similar questions but the only answers that were close to relevant were that the binary was 32 bits but the system was 64 bits. But in my case, the system is 32 bits and the binary was assembled and linked on it.
I noticed that in linking, I used
i.e. without the trailing '.2'.