OSDN Git Service

[PATCH] add Blackfin to the README
[uclinux-h8/elf2flt.git] / ld-elf2flt.in
index 91e1ccb..fd1faed 100644 (file)
@@ -53,7 +53,8 @@ then
 
                -move-rodata)
                          MOVDAT="y";;                 # Put rodata in ROM if possible
-               -s)       ;;                           # Ignore -s (strip)
+               -s|-S|--strip-all|--strip-debug)
+                         ;;                           # Ignore strip flags
 
                -shared-lib-id)
                          shift; SHARED_ID="$1";;      # Shared library ID
@@ -81,7 +82,8 @@ then
                          ARG1="$ARG1 $1"
                                  ;;
 
-               -v)       ARG1="$ARG1 $1"
+               -v|--verbose)
+                                 ARG1="$ARG1 $1"
                                  VERBOSE="y"
                                  ;;
 
@@ -147,13 +149,13 @@ then
                        esac
                        ARG1="$ARG1 -defsym $GOT_OFFSET=`expr ${SHARED_ID} '*' -${GOT_ADJ} - ${GOT_ADJ}`"
                fi
-               if [ "@emit_relocs@" = "yes" ]
+               if [ "@emit_relocs@" = "1" ]
                then
                        SEDOP="$SEDOP -e s/^SINGLE_LINK://"
                else
                        SEDOP="$SEDOP -e /^SINGLE_LINK:/d"
                fi
-               if [ "@emit_ctor_dtor@" = "yes" ]
+               if [ "@emit_ctor_dtor@" = "1" ]
                then
                        SEDOP="$SEDOP -e s/^TOR://"
                else
@@ -176,13 +178,13 @@ then
                        LDSCRIPT="$NEWLDSCRIPT"
                fi
 
-               if [ "@emit_relocs@" = "yes" ]
+               if [ "@emit_relocs@" = "1" ]
                then
                 $LINKER $EMUL $SDIRS -T $LDSCRIPT -q -o "$OFILE.gdb" $ARG1             ||exit $?
                 RFILE="$OFILE.gdb"
                 FLTFLAGS="$FLTFLAGS -a"
                else
-                if [ "@got_check@" = "no" ]
+                if [ "@got_check@" = "0" ]
                 then
                  $LINKER $EMUL $SDIRS -T $LDSCRIPT -Ur -d -o "$OFILE.elf" $ARG1         ||exit $?
                  $LINKER $EMUL $SDIRS -T $LDSCRIPT -o "$OFILE.gdb" $ARG1                ||exit $?