Mercurial > hg > index.cgi
comparison extra/ld @ 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 | 6433cb024174 |
children | 26d2791672b1 |
comparison
equal
deleted
inserted
replaced
196:83bb31ca8b6a | 197:82957c407577 |
---|---|
82 arg=${arg#-l} | 82 arg=${arg#-l} |
83 libs="$libs --library=$arg" | 83 libs="$libs --library=$arg" |
84 ;; | 84 ;; |
85 --section-start) | 85 --section-start) |
86 section_value=$1; shift | 86 section_value=$1; shift |
87 options="$options --section-start=$section_value" | 87 options="$options --section-base=$section_value" |
88 ;; | 88 ;; |
89 | |
90 --map) | |
91 map_file=$1; shift | |
92 options="$options --map=$map_file" | |
93 ;; | |
94 | |
89 -Tbss) | 95 -Tbss) |
90 options="$options --section-start=.bss=$1"; shift | 96 options="$options --section-base=.bss=$1"; shift |
91 ;; | 97 ;; |
92 -Tdata) | 98 -Tdata) |
93 options="$options --section-start=.data=$1"; shift | 99 options="$options --section-base=.data=$1"; shift |
94 ;; | 100 ;; |
95 -Ttext|-Tcode) | 101 -Ttext|-Tcode) |
96 options="$options --section-start=.text=$1"; shift | 102 options="$options --section-base=.text=$1"; shift |
97 ;; | 103 ;; |
98 -v|--verbose) | 104 -v|--verbose) |
99 verbose=1 | 105 verbose=1 |
100 ;; | 106 ;; |
101 *crt0.o) | 107 *crt0.o) |