# HG changeset patch # User lost@l-w.ca # Date 1324602184 25200 # Node ID 6433cb02417468576dfc89508b0c881aabdef723 # Parent c6a38fd8bd337546faa4a0b0d83d95993c5b41fc Make ld wrapper more capable diff -r c6a38fd8bd33 -r 6433cb024174 extra/ld --- a/extra/ld Thu Dec 22 18:01:59 2011 -0700 +++ b/extra/ld Thu Dec 22 18:03:04 2011 -0700 @@ -51,9 +51,18 @@ esac -while [ "$1" != "" ]; do +while [ "$*" != "" ]; do arg=$1; shift case $arg in + -d|-dc|-dp) + # force allocation of space to common symbols + # even if relocatable output file is specified + # not supported by targets + ;; + -X) + # strip unneeded stuff + # ignored - really just a no-op + ;; -gn) # Generate NoICE debug file # ignored because debugging not supported by targets @@ -115,6 +124,15 @@ -nostdlib) stdlibpaths= ;; + + -e) + options="$options --entry=$1" + shift + ;; + + --entry) + options="$options $arg" + ;; -*) echo "ld (m6809): unknown option $arg"