Changeset 1256
- Timestamp:
- Feb 16, 2004, 4:49:31 AM (21 years ago)
- Location:
- trunk/src/binutils/bfd
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/binutils/bfd/hosts/i386emx.h
-
Property cvs2svn:cvs-rev
changed from
1.4
to1.5
r1255 r1256 6 6 #define EMX 7 7 8 #define DEFAULT_ARCH bfd_arch_i3869 10 #define TARGET_PAGE_SIZE 0x100011 #define TARGET_SEGMENT_SIZE 0x1000012 #define TEXT_START_ADDR 0x1000013 #define TARGET_STACK_END_ADDR 0x8000000014 15 8 #define HOST_PAGE_SIZE 0x1000 16 9 #define HOST_SEGMENT_SIZE 0x10000 … … 18 11 #define HOST_STACK_END_ADDR 0x80000000 19 12 13 #ifndef TEXT_START_ADDR /* bird: does this need to be BFD wide? */ 14 #define TEXT_START_ADDR 0x10000 15 #endif 16 17 #define NO_CORE_COMMAND 18 19 #if 0 /* moved to i386aoutemx.c */ 20 21 #define DEFAULT_ARCH bfd_arch_i386 22 23 #define TARGET_PAGE_SIZE 0x1000 24 #define TARGET_SEGMENT_SIZE 0x10000 25 #define TARGET_STACK_END_ADDR 0x80000000 20 26 21 27 #define ZMAGIC_DISK_BLOCK_SIZE 1024 22 28 #define BYTES_IN_WORD 4 23 #define NO_CORE_COMMAND24 29 25 30 #define MY(OP) CONCAT2(i386aout_emx_,OP) 26 31 #define TARGETNAME "a.out-emx" 27 32 #define NO_WRITE_HEADER_KLUDGE 1 28 29 /* a.out executables emx-specific header */30 struct exec31 {32 unsigned long a_info; /* Use macros N_MAGIC, etc for access */33 unsigned a_text; /* length of text, in bytes */34 unsigned a_data; /* length of data, in bytes */35 unsigned a_bss; /* length of uninitialized data area for file, in bytes */36 unsigned a_syms; /* length of symbol table data in file, in bytes */37 unsigned a_entry; /* start address */38 unsigned a_trsize; /* length of relocation info for text, in bytes */39 unsigned a_drsize; /* length of relocation info for data, in bytes */40 };41 33 42 34 #define N_HEADER_IN_TEXT(x) 0 … … 52 44 #define N_DATOFF(x) (N_TXTOFF(x) + N_TXTSIZE(x)) 53 45 46 #endif /* moved to i386aoutemx.c */ 47 48 /* a.out executables emx-specific header */ 49 struct exec /* bird: should this be BFD wide or only for the emx target? */ 50 { 51 unsigned long a_info; /* Use macros N_MAGIC, etc for access */ 52 unsigned a_text; /* length of text, in bytes */ 53 unsigned a_data; /* length of data, in bytes */ 54 unsigned a_bss; /* length of uninitialized data area for file, in bytes */ 55 unsigned a_syms; /* length of symbol table data in file, in bytes */ 56 unsigned a_entry; /* start address */ 57 unsigned a_trsize; /* length of relocation info for text, in bytes */ 58 unsigned a_drsize; /* length of relocation info for data, in bytes */ 59 }; 60 61 /* bird: should this be BFD wide or only for the emx target? */ 54 62 #define IS_STAB(flags) (((flags) & N_STAB) \ 55 63 && (flags) != (N_IMP1|N_EXT) && (flags) != (N_IMP2|N_EXT)) -
Property cvs2svn:cvs-rev
changed from
-
trunk/src/binutils/bfd/i386aoutemx.c
-
Property cvs2svn:cvs-rev
changed from
1.5
to1.6
r1255 r1256 23 23 #endif 24 24 #include "bfd.h" 25 #include "libbfd.h" 25 26 26 #ifndef EMX 27 27 #error "EMX TARGET! EMX isn't defined!!!" 28 28 #endif 29 30 31 /* Avoid multiple defininitions from aoutx if supporting standarad a.out 32 as well as our own. */ 33 /* Do not "beautify" the CONCAT* macro args. Traditional C will not 34 remove whitespace added here, and thus will fail to concatenate 35 the tokens. */ 36 #define NAME(x,y) CONCAT3(i386aout_emx,_32_,y) 37 38 /* previously in hosts/i386emx.h */ 39 #define DEFAULT_ARCH bfd_arch_i386 40 41 #define MY(OP) CONCAT2(i386aout_emx_,OP) 42 #define TARGETNAME "a.out-emx" 43 44 #define TARGET_PAGE_SIZE 0x1000 45 #define TARGET_SEGMENT_SIZE 0x10000 46 #define TEXT_START_ADDR 0x10000 47 #define TARGET_STACK_END_ADDR 0x80000000 48 49 #define HOST_PAGE_SIZE 0x1000 50 #define HOST_SEGMENT_SIZE 0x10000 51 #define HOST_TEXT_START_ADDR 0x10000 52 #define HOST_STACK_END_ADDR 0x80000000 53 54 55 #define ZMAGIC_DISK_BLOCK_SIZE 1024 56 #define BYTES_IN_WORD 4 57 #define NO_CORE_COMMAND 58 59 #define NO_WRITE_HEADER_KLUDGE 1 60 61 #define N_HEADER_IN_TEXT(x) 0 62 63 #define N_TXTOFF(x) \ 64 (N_MAGIC(x) != ZMAGIC ? EXEC_BYTES_SIZE : /* object file or NMAGIC */\ 65 N_SHARED_LIB(x) ? 0 : \ 66 N_HEADER_IN_TEXT(x) ? \ 67 EXEC_BYTES_SIZE : /* no padding */\ 68 0x400 + (x).a_hdrofs \ 69 ) 70 71 #define N_DATOFF(x) (N_TXTOFF(x) + N_TXTSIZE(x)) 72 73 #define IS_STAB(flags) (((flags) & N_STAB) \ 74 && (flags) != (N_IMP1|N_EXT) && (flags) != (N_IMP2|N_EXT)) 75 76 /* end of old hosts/i386emx.h */ 77 29 78 30 79 #include <symcat.h> … … 42 91 /*reloc_howto_type * MY(reloc_howto) PARAMS ((bfd *, struct reloc_std_external *, int *, int *, int *));*/ 43 92 44 reloc_howto_type MY(howto_table _std)[] =93 reloc_howto_type MY(howto_table)[] = 45 94 { 46 95 /* type rs size bsz pcrel bitpos ovrf sf name part_inpl readmask setmask pcdone. */ … … 104 153 0 /* finish_dynamic_link */ 105 154 }; 155 156 #define MY_get_section_contents _bfd_generic_get_section_contents 157 #include "aoutx.h" 106 158 107 159 #include "aout-target.h" … … 197 249 bfd_reloc_code_real_type code; 198 250 { 199 #define STD(i, j) case i: return &MY(howto_table_std)[j] 251 #undef STD 252 #define STD(i, j) case i: return &MY(howto_table)[j] 200 253 201 254 if (obj_reloc_entry_size (abfd) == RELOC_EXT_SIZE) … … 267 320 } 268 321 322 323 -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.