Skip to content

Commit

Permalink
scripts: gcc-ld: Fix -m* flag parsing
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
kerneltoast authored and Arjun-Ingole committed Jan 26, 2022
1 parent 8a0e717 commit 1a1be97
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion scripts/gcc-ld
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1a1be97

Please sign in to comment.