# HG changeset patch # User William Astle # Date 1331825268 21600 # Node ID 82957c4075774c1059937168e453ccdd4f2cc8f2 # Parent 83bb31ca8b6acc31c04e06adaed9fdf998f131e0 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. diff -r 83bb31ca8b6a -r 82957c407577 extra/ld --- 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