Mercurial > hg > index.cgi
comparison extra/ld @ 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 | 26d2791672b1 |
children |
comparison
equal
deleted
inserted
replaced
422:675bc226ea7e | 423:a3711f5ac569 |
---|---|
72 # ignored because debugging not supported by targets | 72 # ignored because debugging not supported by targets |
73 ;; | 73 ;; |
74 -o) | 74 -o) |
75 output_file=$1; shift | 75 output_file=$1; shift |
76 ;; | 76 ;; |
77 --oformat=*) | |
78 arg=${arg#--oformat=}; | |
79 options="$options --format=$arg" | |
80 ;; | |
77 -L*) | 81 -L*) |
78 arg=${arg#-L} | 82 arg=${arg#-L} |
79 libpaths="$libpaths --library-path=$arg" | 83 libpaths="$libpaths --library-path=$arg" |
80 ;; | 84 ;; |
81 -l*) | 85 -l*) |
86 section_value=$1; shift | 90 section_value=$1; shift |
87 options="$options --section-base=$section_value" | 91 options="$options --section-base=$section_value" |
88 ;; | 92 ;; |
89 | 93 |
90 -Map=*) | 94 -Map=*) |
91 arg=${arg#-Map=}; shift | 95 arg=${arg#-Map=}; |
92 options="$options --map=$arg" | 96 options="$options --map=$arg" |
93 ;; | 97 ;; |
94 | 98 |
95 --script=*) | 99 --script=*) |
96 options="$options $arg" | 100 options="$options $arg" |