Changeset 31d9300 in mainline for arch/mips32/loader/pack


Ignore:
Timestamp:
2006-06-18T21:38:15Z (19 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9334b93
Parents:
5c82957
Message:

mips32 binary format choice

File:
1 edited

Legend:

Unmodified
Added
Removed
  • arch/mips32/loader/pack

    r5c82957 r31d9300  
    3131[ "$#" -lt 1 ] && exit 1
    3232
    33 OBJCOPY="$1"
     33case "$1" in
     34        "mips")
     35                BFD="binary"
     36                ;;
     37        "ecoff")
     38                BFD="ecoff-littlemips"
     39                ;;
     40        *)
     41                echo "Undefined image format" >&1
     42                exit 1
     43                ;;
     44esac
     45
     46OBJCOPY="$2"
    3447LINK="_link.ld"
    3548HEADER="_components.h"
    3649
    37 shift
     50shift 2
    3851
    39 echo 'OUTPUT_FORMAT("binary")
     52echo "OUTPUT_FORMAT(\"${BFD}\")
    4053ENTRY(start)
    4154
     
    5467                *(.bss);                /* uninitialized static variables */   
    5568                *(COMMON);              /* global variables */
    56                 *(.reginfo);' > "$LINK"
     69                *(.reginfo);" > "$LINK"
    5770
    5871echo '#ifndef ___COMPONENTS_H__
Note: See TracChangeset for help on using the changeset viewer.