home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / binutils-2.7-src.tgz / tar.out / fsf / binutils / bfd / aout-amiga.c < prev    next >
C/C++ Source or Header  |  1996-09-28  |  2KB  |  51 lines

  1. /* BFD backend for Amiga style a.out with flags set to 0
  2.    Copyright (C) 1990, 91, 92, 93, 1994 Free Software Foundation, Inc.
  3.    Written by Stephan Thesing.
  4.  
  5. This file is part of BFD, the Binary File Descriptor library.
  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. #define TARGETNAME "a.out-amiga"
  22. #define MY(OP) CAT(aout_amiga_,OP)
  23.  
  24. #include "bfd.h"
  25.  
  26. #define MY_exec_hdr_flags 0
  27.  
  28. extern boolean
  29. amiga_final_link(bfd *,struct bfd_link_info *);
  30. #define MY_bfd_final_link amiga_final_link
  31.  
  32. extern bfd_byte *
  33. get_relocated_section_contents(bfd *, struct bfd_link_info *,
  34.                    struct bfd_link_order *, bfd_byte *,
  35.                    boolean , asymbol **);
  36. #define MY_bfd_get_relocated_section_contents get_relocated_section_contents
  37.  
  38. /* Include the usual a.out support.  */
  39. #include "aoutf1.h"
  40.  
  41. /* Final link routine.  We need to use a call back to get the correct
  42.    offsets in the output file.  */
  43.  
  44. boolean
  45. amiga_aout_bfd_final_link (abfd, info)
  46.      bfd *abfd;
  47.      struct bfd_link_info *info;
  48. {
  49.   return NAME(aout,final_link) (abfd, info, MY_final_link_callback);
  50. }
  51.