From 23055407dc443db7a8451222a7106e94b691f911 Mon Sep 17 00:00:00 2001 From: Sultan Alsawaf Date: Fri, 18 Dec 2020 22:06:25 -0800 Subject: [PATCH] scripts: gcc-ld: Fix -m* flag parsing Any -m* flags need to be prefixed with "-Wl," when passed to the linker. This is already done for flags which aren't special-cased, so we can just remove the specific -m* flag handling to appease GCC. Signed-off-by: Sultan Alsawaf --- scripts/gcc-ld | 1 - 1 file changed, 1 deletion(-) diff --git a/scripts/gcc-ld b/scripts/gcc-ld index 997b818c3962..9ca19db977be 100755 --- a/scripts/gcc-ld +++ b/scripts/gcc-ld @@ -19,7 +19,6 @@ while [ "$1" != "" ] ; do -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