# fss-0002

main:
  echo 'main(){}' | gcc -x c -
  readelf -l a.out | grep ": /lib"
  rm -v a.out

adjust:
  # Before we start adjusting the toolchain, try stripping the host system to reduce the chances of stripping causing problems later on
  find /lib -type f -exec  ${TO}bin/strip --strip-debug '{}' ';'
  find /bin -type f -exec  ${TO}bin/strip --strip-debug '{}' ';'
  find /sbin -type f -exec  ${TO}bin/strip --strip-debug '{}' ';'
  find ${TC}lib -type f -exec  ${TO}bin/strip --strip-debug '{}' ';'
  find ${TC}bin -type f -exec ${TO}bin/strip --strip-debug '{}' ';'

  if [[ ! -f ${TO}bin/ld-old ]] ; then cp -v ${TO}bin/ld{,-old} ; fi
  if [[ -f ${TO}bin/ld-new ]] ; then cp -v ${TO}bin/ld{-new,} ; fi
