raigs -1 Light Poster
myuser@linux:~/Desktop$ gcc -nostdlib -Wl,-dynamic-linker,/home/myuser/Desktop/ld-linux-x86-64.so.2,-rpath,/home/myuser/Desktop libc.so.6 libgcc_s.so.1 simple.c
myuser@linux:~/Desktop$ ldd a.out
	linux-vdso.so.1 =>  (0x00007fffbf5ff000)
	libc.so.6 => /home/myuser/Desktop/libc.so.6 (0x00007f308b7ae000)
	libgcc_s.so.1 => /home/myuser/Desktop/libgcc_s.so.1 (0x00007f308b598000)
	/home/myuser/Desktop/ld-linux-x86-64.so.2 => /lib64/ld-linux-x86-64.so.2 (0x00007f308bb11000)
myuser@linux:~/Desktop$

Which ld is being used, the one on the Desktop or the one in /lib64 ? What options do I have to use so it uses the one on my Desktop ?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.