2 # run gcc with ld options
3 # used as a wrapper to execute link time optimizations
4 # yes virginia, this is not pretty
8 while [ "$1" != "" ] ; do
10 -save-temps|-m32|-m64) N="$1" ;;
13 -[olv]|-[Ofd]*|-nostdlib) N="$1" ;;
14 --end-group|--start-group)
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" ;;