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 | 8acf81371ba2e1f4e2734fb1e740f6582a6fae8c (patch) | |
tree | dc9aefaf584c77de3b4a92debff791eb4be759eb /ld/emultempl/scoreelf.em | |
parent | 969ea4a3231ef7855d77661240858f492ebc167d (diff) | |
download | binutils-redhat-8acf81371ba2e1f4e2734fb1e740f6582a6fae8c.tar.gz |
Add support for Score7 architecture.
Diffstat (limited to 'ld/emultempl/scoreelf.em')
-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 f6cb5100ca..897147e9d7 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 + |