# HG changeset patch # User Tormod Volden # Date 1463861170 -7200 # Node ID a3711f5ac569f3c2e761758ee2c7841a6cd268c4 # Parent 675bc226ea7ef354f83ebeeed7e340dd26709bf5 ld wrapper: Add --oformat option Also fix up a bug in the -Map option that swallowed an argument too many. diff -r 675bc226ea7e -r a3711f5ac569 extra/ld --- a/extra/ld Sun May 08 19:25:55 2016 -0600 +++ b/extra/ld Sat May 21 22:06:10 2016 +0200 @@ -74,6 +74,10 @@ -o) output_file=$1; shift ;; + --oformat=*) + arg=${arg#--oformat=}; + options="$options --format=$arg" + ;; -L*) arg=${arg#-L} libpaths="$libpaths --library-path=$arg" @@ -88,7 +92,7 @@ ;; -Map=*) - arg=${arg#-Map=}; shift + arg=${arg#-Map=}; options="$options --map=$arg" ;;