comparison extra/ld @ 184:6433cb024174

Make ld wrapper more capable
author lost@l-w.ca
date Thu, 22 Dec 2011 18:03:04 -0700
parents 606123758641
children 82957c407577
comparison
equal deleted inserted replaced
183:c6a38fd8bd33 184:6433cb024174
49 # exe_suffix=.s19 49 # exe_suffix=.s19
50 ;; 50 ;;
51 esac 51 esac
52 52
53 53
54 while [ "$1" != "" ]; do 54 while [ "$*" != "" ]; do
55 arg=$1; shift 55 arg=$1; shift
56 case $arg in 56 case $arg in
57 -d|-dc|-dp)
58 # force allocation of space to common symbols
59 # even if relocatable output file is specified
60 # not supported by targets
61 ;;
62 -X)
63 # strip unneeded stuff
64 # ignored - really just a no-op
65 ;;
57 -gn) 66 -gn)
58 # Generate NoICE debug file 67 # Generate NoICE debug file
59 # ignored because debugging not supported by targets 68 # ignored because debugging not supported by targets
60 ;; 69 ;;
61 -gs) 70 -gs)
113 ;; 122 ;;
114 123
115 -nostdlib) 124 -nostdlib)
116 stdlibpaths= 125 stdlibpaths=
117 ;; 126 ;;
127
128 -e)
129 options="$options --entry=$1"
130 shift
131 ;;
132
133 --entry)
134 options="$options $arg"
135 ;;
118 136
119 -*) 137 -*)
120 echo "ld (m6809): unknown option $arg" 138 echo "ld (m6809): unknown option $arg"
121 exit 1 139 exit 1
122 ;; 140 ;;