%general-entities; ]> Re-adjusting the Toolchain Install the adjusted linker by running the following from within the binutils-build directory: make -C ld INSTALL=/tools/bin/install install Amend the GCC specs file: perl -pi -e 's@ /tools/lib/ld-linux.so.2@ /lib/ld-linux.so.2@g;' \ -e 's@\*startfile_prefix_spec:\n@$_/usr/lib/@g;' \ `gcc --print-file specs` Perform a simple sanity check: echo 'main(){}' > dummy.c cc dummy.c readelf -l a.out | grep ': /lib' The output of the last command will be: [Requesting program interpreter: /lib/ld-linux.so.2] Once you are satisfied that all is well, clean up the test files: rm dummy.c a.out