diff options
author | Nick Clifton <nickc@redhat.com> | 2009-03-02 10:33:08 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2009-03-02 10:33:08 +0000 |
commit | c3b7224ae49a815ca1e60d058acc980530832881 (patch) | |
tree | 5c6fbdaaf1f119828e423512f1b9d8431894596c /ld/emultempl | |
parent | 9af17804e939a7d07adb86d8c16992e4c92b46ff (diff) | |
download | gdb-c3b7224ae49a815ca1e60d058acc980530832881.zip gdb-c3b7224ae49a815ca1e60d058acc980530832881.tar.gz gdb-c3b7224ae49a815ca1e60d058acc980530832881.tar.bz2 |
Add support for Score7 architecture.
Diffstat (limited to 'ld/emultempl')
-rw-r--r-- | ld/emultempl/scoreelf.em | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/ld/emultempl/scoreelf.em b/ld/emultempl/scoreelf.em index f6cb510..897147e 100644 --- a/ld/emultempl/scoreelf.em +++ b/ld/emultempl/scoreelf.em @@ -1,6 +1,7 @@ # This shell script emits a C file. -*- C -*- -# Copyright 2006, 2007, 2008 Free Software Foundation, Inc. +# Copyright 2006, 2007, 2008, 2009 Free Software Foundation, Inc. # Contributed by: +# Brain.lin (brain.lin@sunplusct.com) # Mei Ligang (ligang@sunnorth.com.cn) # Pei-Lin Tsai (pltsai@sunplus.com) @@ -27,14 +28,16 @@ # fragment <<EOF +#include "elf32-score.h" + static void gld${EMULATION_NAME}_before_parse () { #ifndef TARGET_ /* I.e., if not generic. */ - ldfile_set_output_arch ("`echo ${ARCH}`"); + ldfile_set_output_arch ("`echo ${ARCH}`", bfd_arch_unknown); #endif /* not TARGET_ */ - config.dynamic_link = ${DYNAMIC_LINK-true}; - config.has_shared = `if test -n "$GENERATE_SHLIB_SCRIPT" ; then echo true ; else echo false ; fi`; + config.dynamic_link = ${DYNAMIC_LINK-TRUE}; + config.has_shared = `if test -n "$GENERATE_SHLIB_SCRIPT" ; then echo TRUE ; else echo FALSE ; fi`; } static void @@ -56,9 +59,19 @@ score_elf_after_open (void) EOF +# Define some shell vars to insert bits of code into the standard elf +# parse_args and list_options functions. +# +PARSE_AND_LIST_PROLOGUE='' +PARSE_AND_LIST_SHORTOPTS= +PARSE_AND_LIST_LONGOPTS='' +PARSE_AND_LIST_OPTIONS='' +PARSE_AND_LIST_ARGS_CASES='' + # We have our own after_open and before_allocation functions, but they call # the standard routines, so give them a different name. LDEMUL_AFTER_OPEN=score_elf_after_open # Replace the elf before_parse function with our own. LDEMUL_BEFORE_PARSE=gld"${EMULATION_NAME}"_before_parse + |