2 # SPDX-License-Identifier: GPL-2.0
3 # run gcc with ld options
4 # used as a wrapper to execute link time optimizations
5 # yes virginia, this is not pretty
9 while [ "$1" != "" ] ; do
11 -save-temps|
-m32|
-m64) N
="$1" ;;
14 -[olv
]|
-[Ofd
]*|
-nostdlib) N
="$1" ;;
15 --end-group|
--start-group)
18 --script|
--defsym|
-init|
-Map|
--oformat|
-rpath|\
19 -rpath-link|
--sort-section|
--section-start|
-Tbss|
-Tdata|
-Ttext|\
20 --version-script|
--dynamic-list|
--version-exports-symbol|
--wrap|
-m)
21 A
="$1" ; shift ; N
="-Wl,$A,$1" ;;