Changeset 729 for trunk/src/binutils/bfd/i386aoutemx.c
- Timestamp:
- Sep 25, 2003, 9:27:01 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/src/binutils/bfd/i386aoutemx.c (modified) (4 diffs, 1 prop)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/binutils/bfd/i386aoutemx.c
-
Property cvs2svn:cvs-rev
changed from
1.2to1.3
r728 r729 18 18 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ 19 19 20 #include "sysdep.h" 21 #include "bfd.h" 22 #include "libbfd.h" 23 #include "libaout.h" 20 #define EMX 24 21 25 static bfd_boolean MY(set_sizes) (); 22 #define ARCH_SIZE 32 23 #define DEFAULT_ARCH bfd_arch_i386 24 25 #define TEXT_START_ADDR 0x10000 26 #define TARGET_PAGE_SIZE 0x1000 27 #define TARGET_SEGMENT_SIZE 0x10000 28 #define TARGET_STACK_END_ADDR 0x80000000 29 30 #define ZMAGIC_DISK_BLOCK_SIZE 1024 31 #define BYTES_IN_WORD 4 32 #define NO_CORE_COMMAND 33 34 #define MY(OP) CONCAT2(i386aout_emx_,OP) 35 #define TARGETNAME "a.out-emx" 36 37 #define IS_STAB(flags) (((flags) & N_STAB) \ 38 && (flags) != (N_IMP1|N_EXT) && (flags) != (N_IMP2|N_EXT)) 39 40 #include "aout/aoutemx.h" 41 #include "aoutx.h" 42 43 #define MY_object_p MY(object_p) 26 44 #define MY_backend_data &MY(backend_data) 27 45 28 static const bfd_target *MY(object_p) ();29 #define MY_object_p MY(object_p) 46 static ); 47 static const bfd_target *MY(object_p) PARAMS ((bfd *)); 30 48 31 49 static CONST struct aout_backend_data MY(backend_data) = { … … 47 65 #include "aout-target.h" 48 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 49 115 /* 50 116 * Finish up the reading of an a.out file header … … 62 128 (void)_fseek_hdr(bfd_cache_lookup(abfd)); 63 129 add = bfd_tell (abfd) - org_pos; 64 if (bfd_read ((PTR) &exec_bytes, 1, EXEC_BYTES_SIZE, abfd) 130 131 if (bfd_bread ((PTR) &exec_bytes, EXEC_BYTES_SIZE, abfd) 65 132 != EXEC_BYTES_SIZE) 66 133 { … … 76 143 77 144 NAME(aout,swap_exec_header_in)(abfd, &exec_bytes, &exec); 78 exec. emx_add= add;145 exec. = add; 79 146 target = NAME(aout,some_aout_object_p) (abfd, &exec, MY(callback)); 80 147 return target; -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.
