changeset 184:6433cb024174

Make ld wrapper more capable
author lost@l-w.ca
date Thu, 22 Dec 2011 18:03:04 -0700
parents c6a38fd8bd33
children cca933d32298
files extra/ld
diffstat 1 files changed, 19 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/extra/ld	Thu Dec 22 18:01:59 2011 -0700
+++ b/extra/ld	Thu Dec 22 18:03:04 2011 -0700
@@ -51,9 +51,18 @@
 esac
 
 
-while [ "$1" != "" ]; do
+while [ "$*" != "" ]; do
 	arg=$1; shift
 	case $arg in
+		-d|-dc|-dp)
+			# force allocation of space to common symbols
+			# even if relocatable output file is specified
+			# not supported by targets
+			;;
+		-X)
+			# strip unneeded stuff
+			# ignored - really just a no-op
+			;;
 		-gn)
 			# Generate NoICE debug file
 			# ignored because debugging not supported by targets
@@ -115,6 +124,15 @@
 		-nostdlib)
 			stdlibpaths=
 			;;
+		
+		-e)
+			options="$options --entry=$1"
+			shift
+			;;
+			
+		--entry)
+			options="$options $arg"
+			;;
 
 		-*)
 			echo "ld (m6809): unknown option $arg"