Version:  2.0.40 2.2.26 2.4.37 3.13 3.14 3.15 3.16 3.17 3.18 3.19 4.0 4.1 4.2 4.3 4.4 4.5 4.6 4.7 4.8 4.9 4.10

Linux/scripts/gcc-ld

  1 #!/bin/sh
  2 # run gcc with ld options
  3 # used as a wrapper to execute link time optimizations
  4 # yes virginia, this is not pretty
  5 
  6 ARGS="-nostdlib"
  7 
  8 while [ "$1" != "" ] ; do
  9         case "$1" in
 10         -save-temps|-m32|-m64) N="$1" ;;
 11         -r) N="$1" ;;
 12         -[Wg]*) N="$1" ;;
 13         -[olv]|-[Ofd]*|-nostdlib) N="$1" ;;
 14         --end-group|--start-group)
 15                  N="-Wl,$1" ;;
 16         -[RTFGhIezcbyYu]*|\
 17 --script|--defsym|-init|-Map|--oformat|-rpath|\
 18 -rpath-link|--sort-section|--section-start|-Tbss|-Tdata|-Ttext|\
 19 --version-script|--dynamic-list|--version-exports-symbol|--wrap|-m)
 20                 A="$1" ; shift ; N="-Wl,$A,$1" ;;
 21         -[m]*) N="$1" ;;
 22         -*) N="-Wl,$1" ;;
 23         *)  N="$1" ;;
 24         esac
 25         ARGS="$ARGS $N"
 26         shift
 27 done
 28 
 29 exec $CC $ARGS

This page was automatically generated by LXR 0.3.1 (source).  •  Linux is a registered trademark of Linus Torvalds  •  Contact us