changeset 423:a3711f5ac569

ld wrapper: Add --oformat option Also fix up a bug in the -Map option that swallowed an argument too many.
author Tormod Volden <debian.tormod@gmail.com>
date Sat, 21 May 2016 22:06:10 +0200
parents 675bc226ea7e
children 3aad0ff3c3be
files extra/ld
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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"
 			;;