| OLD | NEW |
| 1 /* BFD back-end for Mach3/532 a.out-ish binaries. | 1 /* BFD back-end for Mach3/532 a.out-ish binaries. |
| 2 Copyright 1990, 1991, 1992, 1994, 1995, 2000, 2001, 2002, 2005, 2007, 2009 | 2 Copyright 1990, 1991, 1992, 1994, 1995, 2000, 2001, 2002, 2005, 2007, 2009 |
| 3 Free Software Foundation, Inc. | 3 Free Software Foundation, Inc. |
| 4 | 4 |
| 5 This file is part of BFD, the Binary File Descriptor library. | 5 This file is part of BFD, the Binary File Descriptor library. |
| 6 | 6 |
| 7 This program is free software; you can redistribute it and/or modify | 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 | 8 it under the terms of the GNU General Public License as published by |
| 9 the Free Software Foundation; either version 3 of the License, or | 9 the Free Software Foundation; either version 3 of the License, or |
| 10 (at your option) any later version. | 10 (at your option) any later version. |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 | 69 |
| 70 /* libaout doesn't use NAME for these ... */ | 70 /* libaout doesn't use NAME for these ... */ |
| 71 | 71 |
| 72 #define MY_get_section_contents aout_32_get_section_contents | 72 #define MY_get_section_contents aout_32_get_section_contents |
| 73 | 73 |
| 74 #define MY_text_includes_header 1 | 74 #define MY_text_includes_header 1 |
| 75 | 75 |
| 76 #define MY_exec_header_not_counted 1 | 76 #define MY_exec_header_not_counted 1 |
| 77 | 77 |
| 78 reloc_howto_type *ns32kaout_bfd_reloc_type_lookup | 78 reloc_howto_type *ns32kaout_bfd_reloc_type_lookup |
| 79 PARAMS ((bfd *abfd, bfd_reloc_code_real_type code)); | 79 (bfd *abfd, bfd_reloc_code_real_type code); |
| 80 | |
| 81 static bfd_boolean MY(write_object_contents) | |
| 82 PARAMS ((bfd *abfd)); | |
| 83 | 80 |
| 84 static bfd_boolean | 81 static bfd_boolean |
| 85 MY(write_object_contents) (abfd) | 82 MY(write_object_contents) (bfd *abfd) |
| 86 bfd *abfd; | |
| 87 { | 83 { |
| 88 struct external_exec exec_bytes; | 84 struct external_exec exec_bytes; |
| 89 struct internal_exec *execp = exec_hdr (abfd); | 85 struct internal_exec *execp = exec_hdr (abfd); |
| 90 | 86 |
| 91 obj_reloc_entry_size (abfd) = RELOC_STD_SIZE; | 87 obj_reloc_entry_size (abfd) = RELOC_STD_SIZE; |
| 92 | 88 |
| 93 BFD_ASSERT (bfd_get_arch (abfd) == bfd_arch_ns32k); | 89 BFD_ASSERT (bfd_get_arch (abfd) == bfd_arch_ns32k); |
| 94 switch (bfd_get_mach (abfd)) | 90 switch (bfd_get_mach (abfd)) |
| 95 { | 91 { |
| 96 case 32032: | 92 case 32032: |
| 97 N_SET_MACHTYPE (*execp, M_NS32032); | 93 N_SET_MACHTYPE (*execp, M_NS32032); |
| 98 break; | 94 break; |
| 99 case 32532: | 95 case 32532: |
| 100 default: | 96 default: |
| 101 N_SET_MACHTYPE (*execp, M_NS32532); | 97 N_SET_MACHTYPE (*execp, M_NS32532); |
| 102 break; | 98 break; |
| 103 } | 99 } |
| 104 N_SET_FLAGS (*execp, aout_backend_info (abfd)->exec_hdr_flags); | 100 N_SET_FLAGS (*execp, aout_backend_info (abfd)->exec_hdr_flags); |
| 105 | 101 |
| 106 WRITE_HEADERS(abfd, execp); | 102 WRITE_HEADERS(abfd, execp); |
| 107 | 103 |
| 108 return TRUE; | 104 return TRUE; |
| 109 } | 105 } |
| 110 | 106 |
| 111 #define MY_write_object_contents MY(write_object_contents) | 107 #define MY_write_object_contents MY(write_object_contents) |
| 112 | 108 |
| 113 #include "aout-target.h" | 109 #include "aout-target.h" |
| OLD | NEW |