home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / gnu / djgpp / src / binutils.2 / ld / e_vanill.c < prev    next >
Encoding:
C/C++ Source or Header  |  1993-05-30  |  1.8 KB  |  73 lines

  1. /* A vanilla emulation with no defaults
  2.    Copyright (C) 1991 Free Software Foundation, Inc.
  3.    Written by Steve Chamberlain steve@cygnus.com
  4.  
  5. This file is part of GLD, the Gnu Linker.
  6.  
  7. This program is free software; you can redistribute it and/or modify
  8. it under the terms of the GNU General Public License as published by
  9. the Free Software Foundation; either version 2 of the License, or
  10. (at your option) any later version.
  11.  
  12. This program is distributed in the hope that it will be useful,
  13. but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  15. GNU General Public License for more details.
  16.  
  17. You should have received a copy of the GNU General Public License
  18. along with this program; if not, write to the Free Software
  19. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
  20.  
  21. #include "bfd.h"
  22. #include "sysdep.h"
  23.  
  24.  
  25. #include "ld.h"
  26. #include "config.h"
  27. #include "ldemul.h"
  28. #include "ldfile.h"
  29. #include "ldmisc.h"
  30.  
  31. extern  boolean lang_float_flag;
  32.  
  33.  
  34. extern enum bfd_architecture ldfile_output_architecture;
  35. extern unsigned long ldfile_output_machine;
  36. extern char *ldfile_output_machine_name;
  37.  
  38. extern bfd *output_bfd;
  39.  
  40.  
  41.  
  42. static void vanilla_before_parse()
  43. {
  44. }
  45.  
  46. static void
  47. vanilla_set_output_arch()
  48. {
  49.   /* Set the output architecture and machine if possible */
  50.   unsigned long  machine = 0;
  51.   bfd_set_arch_mach(output_bfd, ldfile_output_architecture, machine);
  52. }
  53.  
  54. static char *vanilla_get_script()
  55. {
  56.   return "";
  57. }
  58.  
  59. struct ld_emulation_xfer_struct ld_vanilla_emulation = 
  60. {
  61.   vanilla_before_parse,
  62.   syslib_default,
  63.   hll_default,
  64.   after_parse_default,
  65.   after_allocation_default,
  66.   vanilla_set_output_arch,
  67.   ldemul_default_target,
  68.   before_allocation_default,
  69.   vanilla_get_script,
  70.   "vanilla",
  71.   "a.out-sunos-big"
  72. };
  73.