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 <sultan@kerneltoast.com>
This commit is contained in:
parent
3ee4d5731d
commit
23055407dc
@ -19,7 +19,6 @@ while [ "$1" != "" ] ; do
|
|||||||
-rpath-link|--sort-section|--section-start|-Tbss|-Tdata|-Ttext|\
|
-rpath-link|--sort-section|--section-start|-Tbss|-Tdata|-Ttext|\
|
||||||
--version-script|--dynamic-list|--version-exports-symbol|--wrap|-m)
|
--version-script|--dynamic-list|--version-exports-symbol|--wrap|-m)
|
||||||
A="$1" ; shift ; N="-Wl,$A,$1" ;;
|
A="$1" ; shift ; N="-Wl,$A,$1" ;;
|
||||||
-[m]*) N="$1" ;;
|
|
||||||
-*) N="-Wl,$1" ;;
|
-*) N="-Wl,$1" ;;
|
||||||
*) N="$1" ;;
|
*) N="$1" ;;
|
||||||
esac
|
esac
|
||||||
|
Loading…
Reference in New Issue
Block a user