changeset 197:82957c407577

Fix --section-start handling and add --map to ld wrapper. Fixed error where --section-start was passed to lwlink instead of --section-base. Also added --map to ld wrapper. Thanks to pulkomandy@pulkomandy.tk for pointing out the former and mentioning the lack of the latter.
author William Astle <lost@l-w.ca>
date Thu, 15 Mar 2012 09:27:48 -0600
parents 83bb31ca8b6a
children d2bed389e94a
files extra/ld
diffstat 1 files changed, 10 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/extra/ld	Thu Mar 15 09:26:24 2012 -0600
+++ b/extra/ld	Thu Mar 15 09:27:48 2012 -0600
@@ -84,16 +84,22 @@
 			;;
 		--section-start)
 			section_value=$1; shift
-			options="$options --section-start=$section_value"
+			options="$options --section-base=$section_value"
 			;;
+		
+		--map)
+			map_file=$1; shift
+			options="$options --map=$map_file"
+			;;
+			
 		-Tbss)
-			options="$options --section-start=.bss=$1"; shift
+			options="$options --section-base=.bss=$1"; shift
 			;;
 		-Tdata)
-			options="$options --section-start=.data=$1"; shift
+			options="$options --section-base=.data=$1"; shift
 			;;
 		-Ttext|-Tcode)
-			options="$options --section-start=.text=$1"; shift
+			options="$options --section-base=.text=$1"; shift
 			;;
 		-v|--verbose)
 			verbose=1