title: Change ld-linux location
body: <p>I have find out that to load libraries, a executable first opens <code>/lib/ld-linux-x86-64.so.2</code>. All the functionality regarding loading shared libraries (search in many paths, using rpath, etc) will work only after <code>ld-linux</code> is loaded, because it is <code>ld-linux</code> that implements these functionality.</p>
  
  <p>It seemed to me that <code>ld-linux.so</code> location is hardcoded in executable (invoking <code>strings</code> on my executable reinforces this theory). My problem is that in my linux distribution, the compiler (g++) sets the <code>ld-linux</code> location to <code>/lib/ld-linux-x86-64.so.2</code>. While on Ubuntu (which is more popular) it is located at <code>/lib/x86_64-linux-gnu/ld-linux-x86-64.so.2</code>.</p>
  
  <p>I was wondering if I can make my executable looks for <code>ld-linux.so</code> at <code>/lib/x86_64-linux-gnu/ld-linux-x86-64.so.2</code>(which is also present in my distro as a symbolic link).</p>