Revision f83246089ca09308425175d47f5e71e6da68b2ef authored by Linus Torvalds on 26 April 2017, 22:10:45 UTC, committed by Linus Torvalds on 26 April 2017, 22:10:45 UTC
Pull sparc fixes from David Miller:
 "I didn't want the release to go out without the statx system call
  properly hooked up"

* git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc:
  sparc: Update syscall tables.
  sparc64: Fill in rest of HAVE_REGS_AND_STACK_ACCESS_API
2 parent s 1e2f82d + f6ebf0b
Raw File
gcc-ld
#!/bin/sh
# run gcc with ld options
# used as a wrapper to execute link time optimizations
# yes virginia, this is not pretty

ARGS="-nostdlib"

while [ "$1" != "" ] ; do
	case "$1" in
	-save-temps|-m32|-m64) N="$1" ;;
	-r) N="$1" ;;
	-[Wg]*) N="$1" ;;
	-[olv]|-[Ofd]*|-nostdlib) N="$1" ;;
	--end-group|--start-group)
		 N="-Wl,$1" ;;
	-[RTFGhIezcbyYu]*|\
--script|--defsym|-init|-Map|--oformat|-rpath|\
-rpath-link|--sort-section|--section-start|-Tbss|-Tdata|-Ttext|\
--version-script|--dynamic-list|--version-exports-symbol|--wrap|-m)
		A="$1" ; shift ; N="-Wl,$A,$1" ;;
	-[m]*) N="$1" ;;
	-*) N="-Wl,$1" ;;
	*)  N="$1" ;;
	esac
	ARGS="$ARGS $N"
	shift
done

exec $CC $ARGS
back to top