Changeset 609 for branches/GNU/src/binutils/include/aout
- Timestamp:
- Aug 16, 2003, 6:59:22 PM (22 years ago)
- Location:
- branches/GNU/src/binutils/include/aout
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GNU/src/binutils/include/aout/ChangeLog
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.1.1.2
r608 r609 1 2001-06-07 Alan Modra <amodra@bigpond.net.au> 2 3 * Many files: Update copyright notices. 4 5 Mon Apr 3 13:29:08 2000 Hans-Peter Nilsson <hp@axis.com> 1 2003-03-06 Elias Athanasopoulos <elathan@phys.uoa.gr> 2 3 * aout64.h (BYTES_IN_WORD): Define if necessary. 4 5 2001-09-18 Alan Modra <amodra@bigpond.net.au> 6 7 * aout64.h: Formatting fixes. 8 (N_TXTADDR): Evaluate to a bfd_vma. 9 (N_DATADDR): Avoid negative unsigned warning. 10 * hp300hpux.h: Formatting fixes. 11 (N_DATADDR): Avoid negative unsigned warning. 12 13 2000-04-03 Hans-Peter Nilsson <hp@axis.com> 6 14 7 15 * aout64.h (RELOC_EXT_BITS_EXTERN_BIG): Wrap definition in #ifndef. … … 17 25 defined as 0. 18 26 19 Sun Jun 28 11:33:48 1998 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>27 1998-06-28 Peter Schauer <pes@regent.e-technik.tu-muenchen.de> 20 28 21 29 * stab.def: Add N_ALIAS from SunPro F77. 22 30 23 Mon Mar 11 12:15:52 1996Ian Lance Taylor <ian@cygnus.com>31 1996-03-11 Ian Lance Taylor <ian@cygnus.com> 24 32 25 33 * stab.def: Use __define_stab_duplicate rather than __define_stab … … 28 36 stab.def. 29 37 30 Fri Oct 27 17:47:16 1995Niklas Hallqvist <niklas@appli.se>38 1995-10-27 Niklas Hallqvist <niklas@appli.se> 31 39 32 40 * aout64.h, host.h, hp300hpux.h, sun4.h: Changed PAGE_SIZE to 33 41 TARGET_PAGE_SIZE. 34 42 35 Tue Sep 12 12:07:02 1995Ian Lance Taylor <ian@cygnus.com>43 1995-09-12 Ian Lance Taylor <ian@cygnus.com> 36 44 37 45 * sun4.h (struct internal_sun4_dynamic_link): Change all fields 38 46 from long to unsigned long. 39 47 40 Wed Jul 12 00:15:13 1995Ken Raeburn <raeburn@kr-pc.cygnus.com>48 1995-07-12 Ken Raeburn <raeburn@kr-pc.cygnus.com> 41 49 42 50 * sun4.h (PAGE_SIZE): Undefine before defining. 43 51 44 Thu Jun 16 14:22:55 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 52 1994-09-04 Richard Earnshaw (rwe@pegasus.esprit.ec.org) 53 54 * aout64.h: Only define QMAGIC if it isn't already defined. 55 56 1994-06-16 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 45 57 46 58 * aout64.h (BMAGIC): Define. 47 59 48 Sat Jun 11 16:16:09 1994Ian Lance Taylor (ian@tweedledumb.cygnus.com)60 1994-06-11 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 49 61 50 62 Add weak symbols as an extension to a.out. … … 52 64 * stab.def: Update symbol value table. 53 65 54 Thu Jun 2 17:13:38 1994Ian Lance Taylor (ian@tweedledumb.cygnus.com)66 1994-06-02 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 55 67 56 68 * sun4.h (EXTERNAL_SUN4_DYNAMIC_DEBUGGER_SIZE): Correct from 28 to 57 69 24. Fix up ld_got comment. 58 70 59 Wed Mar 30 00:31:49 1994Peter Schauer (pes@regent.e-technik.tu-muenchen.de)71 1994-03-30 Peter Schauer (pes@regent.e-technik.tu-muenchen.de) 60 72 61 73 * dynix3.h: Cleanup, adapt to current bfd version. 62 74 63 Sat Feb 26 10:25:53 1994Ian Lance Taylor (ian@cygnus.com)75 1994-02-26 Ian Lance Taylor (ian@cygnus.com) 64 76 65 77 * aout64.h: Add casts to avoid warnings from SVR4 cc. 66 78 67 Fri Feb 11 12:56:04 1994Stan Shebs (shebs@andros.cygnus.com)79 1994-02-11 Stan Shebs (shebs@andros.cygnus.com) 68 80 69 81 * ar.h (ARMAG, ARMAGB, ARFMAG): Change '\n' to '\012', for greater 70 82 portability. 71 83 72 Fri Jan 21 00:59:06 1994Ian Lance Taylor (ian@tweedledumb.cygnus.com)84 1994-01-21 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 73 85 74 86 * sun4.h: Added information about SunOS shared libraries. 75 87 76 Fri Jan 7 08:20:13 1994Jim Kingdon (kingdon@deneb.cygnus.com)88 1994-01-07 Jim Kingdon (kingdon@deneb.cygnus.com) 77 89 78 90 * aout64.h (N_TXTADDR): Add comment regarding OMAGIC and NMAGIC. 79 91 80 Sat Dec 25 14:55:41 1993Jim Kingdon (kingdon@lioth.cygnus.com)92 1993-12-25 Jim Kingdon (kingdon@lioth.cygnus.com) 81 93 82 94 * aout64.h (N_DATOFF): Don't pad (revert change of 8 Jul 1993). 83 95 84 Tue Nov 16 15:43:46 1993Jim Kingdon (kingdon@lioth.cygnus.com)96 1993-11-16 Jim Kingdon (kingdon@lioth.cygnus.com) 85 97 86 98 * aout64.h: New macros ZMAGIC_DISK_BLOCK_SIZE and N_DISK_BLOCK_SIZE … … 88 100 (N_TXTOFF, N_DATOFF): Use them. 89 101 90 Thu Nov 4 00:33:48 1993Ken Raeburn (raeburn@kr-pc.cygnus.com)102 1993-11-04 Ken Raeburn (raeburn@kr-pc.cygnus.com) 91 103 92 104 * aout64.h (RELOC_STD_BITS_RELATIVE_LITTLE): Fixed value to match … … 94 106 (RELOC_STD_BITS_JMPTABLE_LITTLE): Likewise. 95 107 96 Wed Nov 3 13:48:27 1993 David J. Mackenzie (djm@thepub.cygnus.com)108 1993-11-03 David J. Mackenzie (djm@thepub.cygnus.com) 97 109 98 110 * aout64.h (RELOC_STD_BITS_BASEREL_LITTLE): Make it 0x10 (Ken's 99 111 suggestion) to avoid conflict with RELOC_STD_BITS_EXTERN_LITTLE. 100 112 101 Fri Oct 29 15:09:52 1993Ian Lance Taylor (ian@tweedledumb.cygnus.com)113 1993-10-29 Ian Lance Taylor (ian@tweedledumb.cygnus.com) 102 114 103 115 * hp300hpux.h (N_SHARED_LIB): Define to be 0. 104 116 105 Mon Sep 13 21:00:56 1993 John Gilmore (gnu@cygnus.com)117 1993-09-13 John Gilmore (gnu@cygnus.com) 106 118 107 119 * ar.h (ARMAP_TIME_OFFSET): Add and describe. … … 111 123 * aout64.h [ARCH_SIZE != 64]: Allow N_BADMAG to be overridden. 112 124 113 Mon Aug 16 14:30:14 1993Jim Kingdon (kingdon@lioth.cygnus.com)125 1993-08-16 Jim Kingdon (kingdon@lioth.cygnus.com) 114 126 115 127 * stab_gnu.h: Include aout/stab.def not just stab.def. 116 128 117 Sun Jul 18 21:41:47 1993Jim Kingdon (kingdon@rtl.cygnus.com)129 1993-07-18 Jim Kingdon (kingdon@rtl.cygnus.com) 118 130 119 131 * dynix3.h: New, for symmetry running dynix. 120 132 121 Thu Jul 8 12:52:22 1993Jim Kingdon (kingdon@lioth.cygnus.com)133 1993-07-08 Jim Kingdon (kingdon@lioth.cygnus.com) 122 134 123 135 * aout64.h (N_BADMAG): Recognize QMAGIC. … … 125 137 N_DATOFF: Pad text size if we need to. 126 138 127 Fri Jun 18 19:19:38 1993Jim Kingdon (kingdon@lioth.cygnus.com)139 1993-06-18 Jim Kingdon (kingdon@lioth.cygnus.com) 128 140 129 141 * stab.def (N_ECOML): Fix comment. 130 142 131 Mon May 31 09:21:30 1993Jim Kingdon (kingdon@cygnus.com)143 1993-05-31 Jim Kingdon (kingdon@cygnus.com) 132 144 133 145 * stab.def: Remove Solaris information on N_FUN stabstring grammar; 134 146 I've transferred it to gdb/doc/stabs.texinfo, where it belongs. 135 147 136 Mon May 10 05:48:43 1993Ken Raeburn (raeburn@kr-pc.cygnus.com)148 1993-05-10 Ken Raeburn (raeburn@kr-pc.cygnus.com) 137 149 138 150 * hp300hpux.h: Patch from Glenn Engel for linker problem and … … 144 156 (N_HEADER_IN_TEXT, N_DATADDR): New macros. 145 157 146 Thu Apr 29 12:07:37 1993Ken Raeburn (raeburn@deneb.cygnus.com)158 1993-04-29 Ken Raeburn (raeburn@deneb.cygnus.com) 147 159 148 160 * hp300hpux.h: New file from Glenn Engel, glenne@lsid.hp.com. 149 161 150 Tue Apr 27 05:51:04 1993Ken Raeburn (raeburn@kr-pc.cygnus.com)162 1993-04-27 Ken Raeburn (raeburn@kr-pc.cygnus.com) 151 163 152 164 * aout64.h (struct external_exec, *MAGIC, N_BADMAG): Don't define … … 157 169 `external_nlist' is already defined as a macro. 158 170 159 Sat Aug 15 04:23:02 1992John Gilmore (gnu@cygnus.com)171 1992-08-15 John Gilmore (gnu@cygnus.com) 160 172 161 173 * adobe.h: Add description of a.out.adobe format. 162 174 163 Fri Jul 3 00:36:52 1992John Gilmore (gnu at cygnus.com)175 1992-07-03 John Gilmore (gnu at cygnus.com) 164 176 165 177 * stab.def: Update more Solaris definitions. 166 178 * stab_gnu.h: Add N_SO language types, and Solaris basic float types. 167 179 168 Sun Jun 14 10:53:53 1992John Gilmore (gnu at cygnus.com)180 1992-06-14 John Gilmore (gnu at cygnus.com) 169 181 170 182 * stab.def: Update descriptions of Solaris-2 stabs; add N_UNDF. 171 183 172 Thu Jun 11 01:12:07 1992John Gilmore (gnu at cygnus.com)184 1992-06-11 John Gilmore (gnu at cygnus.com) 173 185 174 186 * stab.def: Add N_OBJ and N_OPT from Solaris-2. 175 187 176 Thu Jan 30 18:12:44 1992John Gilmore (gnu at cygnus.com)177 178 * aout /aout64.h: N_TXTSIZE needs some more parentheses.188 1992-01-30 John Gilmore (gnu at cygnus.com) 189 190 * aout64.h: N_TXTSIZE needs some more parentheses. 179 191 I don't trust C precedence. 180 192 181 Wed Dec 18 14:32:01 1991Per Bothner (bothner at cygnus.com)182 183 * aout /aout64.h: Move common sunos-specific test193 1991-12-18 Per Bothner (bothner at cygnus.com) 194 195 * aout64.h: Move common sunos-specific test 184 196 to recognize shared libraries into new macro N_SHARED_LIB. 185 Use it to simplify &reformat N_TXTADDR, N_TXTOFF, N_TXTSIZE.186 187 Sat Nov 30 20:34:52 1991Steve Chamberlain (sac at rtl.cygnus.com)188 189 * ChangeLog, aout64.h, ar.h, encap.h, host.h, hp.h, ranlib.h,190 reloc.h, stab.def, stab_gnu.h, sun4.h: All moved from the191 d evo/include directory197 Use it to simplify & reformat N_TXTADDR, N_TXTOFF, N_TXTSIZE. 198 199 1991-11-30 Steve Chamberlain (sac at rtl.cygnus.com) 200 201 * aout64.h, ar.h, encap.h, host.h, hp.h, ranlib.h, reloc.h, 202 stab.def, stab_gnu.h, sun4.h: All moved from the devo/include 203 directory. 192 204 193 205 -
Property cvs2svn:cvs-rev
changed from
-
branches/GNU/src/binutils/include/aout/aout64.h
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.1.1.2
r608 r609 1 1 /* `a.out' object-file definitions, including extensions to 64-bit fields 2 2 3 Copyright 2001 Free Software Foundation, Inc.3 Copyright 2001, 2003 Free Software Foundation, Inc. 4 4 5 5 This program is free software; you can redistribute it and/or modify … … 20 20 #define __A_OUT_64_H__ 21 21 22 /* This is the layout on disk of the 32-bit or 64-bit exec header. */ 22 #ifndef BYTES_IN_WORD 23 #define BYTES_IN_WORD 4 24 #endif 25 26 /* This is the layout on disk of the 32-bit or 64-bit exec header. */ 23 27 24 28 #ifndef external_exec 25 29 struct external_exec 26 30 { 27 bfd_byte e_info[4]; /* magic number and stuff*/28 bfd_byte e_text[BYTES_IN_WORD]; /* length of text section in bytes*/29 bfd_byte e_data[BYTES_IN_WORD]; /* length of data section in bytes*/30 bfd_byte e_bss[BYTES_IN_WORD]; /* length of bss area in bytes*/31 bfd_byte e_syms[BYTES_IN_WORD]; /* length of symbol table in bytes*/32 bfd_byte e_entry[BYTES_IN_WORD]; /* start address*/33 bfd_byte e_trsize[BYTES_IN_WORD]; /* length of text relocation info*/34 bfd_byte e_drsize[BYTES_IN_WORD]; /* length of data relocation info*/31 bfd_byte e_info[4]; /* Magic number and stuff. */ 32 bfd_byte e_text[BYTES_IN_WORD]; /* Length of text section in bytes. */ 33 bfd_byte e_data[BYTES_IN_WORD]; /* Length of data section in bytes. */ 34 bfd_byte e_bss[BYTES_IN_WORD]; /* Length of bss area in bytes. */ 35 bfd_byte e_syms[BYTES_IN_WORD]; /* Length of symbol table in bytes. */ 36 bfd_byte e_entry[BYTES_IN_WORD]; /* Start address. */ 37 bfd_byte e_trsize[BYTES_IN_WORD]; /* Length of text relocation info. */ 38 bfd_byte e_drsize[BYTES_IN_WORD]; /* Length of data relocation info. */ 35 39 }; 36 40 37 41 #define EXEC_BYTES_SIZE (4 + BYTES_IN_WORD * 7) 38 42 39 /* Magic numbers for a.out files */43 /* Magic numbers for a.out files. */ 40 44 41 45 #if ARCH_SIZE==64 42 #define OMAGIC 0x1001 /* Code indicating object file */46 #define OMAGIC 0x1001 /* Code indicating object file. */ 43 47 #define ZMAGIC 0x1002 /* Code indicating demand-paged executable. */ 44 48 #define NMAGIC 0x1003 /* Code indicating pure executable. */ … … 50 54 && N_MAGIC(x) != ZMAGIC) 51 55 #else 52 #define OMAGIC 0407 /* ...object file or impure executable. */56 #define OMAGIC 0407 /* Object file or impure executable. */ 53 57 #define NMAGIC 0410 /* Code indicating pure executable. */ 54 58 #define ZMAGIC 0413 /* Code indicating demand-paged executable. */ … … 127 131 * QMAGIC is always like a ZMAGIC for which N_HEADER_IN_TEXT is true, 128 132 and for which the starting address is TARGET_PAGE_SIZE (or should this be 129 SEGMENT_SIZE?) (TEXT_START_ADDR only applies to ZMAGIC, not to QMAGIC). 130 */ 133 SEGMENT_SIZE?) (TEXT_START_ADDR only applies to ZMAGIC, not to QMAGIC). */ 131 134 132 135 /* This macro is only relevant for ZMAGIC files; QMAGIC always has the header 133 136 in the text. */ 134 137 #ifndef N_HEADER_IN_TEXT 135 #define N_HEADER_IN_TEXT(x) (((x).a_entry & (TARGET_PAGE_SIZE-1)) >= EXEC_BYTES_SIZE) 138 #define N_HEADER_IN_TEXT(x) \ 139 (((x).a_entry & (TARGET_PAGE_SIZE-1)) >= EXEC_BYTES_SIZE) 136 140 #endif 137 141 … … 153 157 #ifndef N_TXTADDR 154 158 #define N_TXTADDR(x) \ 155 (/* The address of a QMAGIC file is always one page in, */ \ 156 /* with the header in the text. */ \ 157 N_IS_QMAGIC (x) ? TARGET_PAGE_SIZE + EXEC_BYTES_SIZE : \ 158 N_MAGIC(x) != ZMAGIC ? 0 : /* object file or NMAGIC */\ 159 N_SHARED_LIB(x) ? 0 : \ 160 N_HEADER_IN_TEXT(x) ? \ 161 TEXT_START_ADDR + EXEC_BYTES_SIZE : /* no padding */\ 162 TEXT_START_ADDR /* a page of padding */\ 163 ) 159 (/* The address of a QMAGIC file is always one page in, \ 160 with the header in the text. */ \ 161 N_IS_QMAGIC (x) \ 162 ? (bfd_vma) TARGET_PAGE_SIZE + EXEC_BYTES_SIZE \ 163 : (N_MAGIC (x) != ZMAGIC \ 164 ? (bfd_vma) 0 /* Object file or NMAGIC. */ \ 165 : (N_SHARED_LIB (x) \ 166 ? (bfd_vma) 0 \ 167 : (N_HEADER_IN_TEXT (x) \ 168 ? (bfd_vma) TEXT_START_ADDR + EXEC_BYTES_SIZE \ 169 : (bfd_vma) TEXT_START_ADDR)))) 164 170 #endif 165 171 … … 179 185 /* Offset in an a.out of the start of the text section. */ 180 186 #ifndef N_TXTOFF 181 #define N_TXTOFF(x) \ 182 (/* For {O,N,Q}MAGIC, no padding. */ \ 183 N_MAGIC(x) != ZMAGIC ? EXEC_BYTES_SIZE : \ 184 N_SHARED_LIB(x) ? 0 : \ 185 N_HEADER_IN_TEXT(x) ? \ 186 EXEC_BYTES_SIZE : /* no padding */\ 187 ZMAGIC_DISK_BLOCK_SIZE /* a page of padding */\ 188 ) 187 #define N_TXTOFF(x) \ 188 (/* For {O,N,Q}MAGIC, no padding. */ \ 189 N_MAGIC (x) != ZMAGIC \ 190 ? EXEC_BYTES_SIZE \ 191 : (N_SHARED_LIB (x) \ 192 ? 0 \ 193 : (N_HEADER_IN_TEXT (x) \ 194 ? EXEC_BYTES_SIZE /* No padding. */ \ 195 : ZMAGIC_DISK_BLOCK_SIZE /* A page of padding. */))) 189 196 #endif 190 197 /* Size of the text section. It's always as stated, except that we … … 195 202 #ifndef N_TXTSIZE 196 203 #define N_TXTSIZE(x) \ 197 (/* For QMAGIC, we don't consider the header part of the text section. */\ 198 N_IS_QMAGIC (x) ? (x).a_text - EXEC_BYTES_SIZE : \ 199 (N_MAGIC(x) != ZMAGIC || N_SHARED_LIB(x)) ? (x).a_text : \ 200 N_HEADER_IN_TEXT(x) ? \ 201 (x).a_text - EXEC_BYTES_SIZE: /* no padding */\ 202 (x).a_text /* a page of padding */\ 203 ) 204 (/* For QMAGIC, we don't consider the header part of the text section. */\ 205 N_IS_QMAGIC (x) \ 206 ? (x).a_text - EXEC_BYTES_SIZE \ 207 : ((N_MAGIC (x) != ZMAGIC || N_SHARED_LIB (x)) \ 208 ? (x).a_text \ 209 : (N_HEADER_IN_TEXT (x) \ 210 ? (x).a_text - EXEC_BYTES_SIZE /* No padding. */ \ 211 : (x).a_text /* A page of padding. */ ))) 204 212 #endif 205 213 /* The address of the data segment in virtual memory. 206 214 It is the text segment address, plus text segment size, rounded 207 up to a N_SEGSIZE boundary for pure or pageable files. */215 up to a N_SEGSIZE boundary for pure or pageable files. */ 208 216 #ifndef N_DATADDR 209 217 #define N_DATADDR(x) \ 210 (N_MAGIC(x)==OMAGIC? (N_TXTADDR(x)+N_TXTSIZE(x)) \ 211 : (N_SEGSIZE(x) + ((N_TXTADDR(x)+N_TXTSIZE(x)-1) & ~(N_SEGSIZE(x)-1)))) 218 (N_MAGIC (x) == OMAGIC \ 219 ? (N_TXTADDR (x) + N_TXTSIZE (x)) \ 220 : (N_SEGSIZE (x) + ((N_TXTADDR (x) + N_TXTSIZE (x) - 1) \ 221 & ~ (bfd_vma) (N_SEGSIZE (x) - 1)))) 212 222 #endif 213 223 /* The address of the BSS segment -- immediately after the data segment. */ 214 224 215 #define N_BSSADDR(x) (N_DATADDR (x) + (x).a_data)225 #define N_BSSADDR(x) (N_DATADDR (x) + (x).a_data) 216 226 217 227 /* Offsets of the various portions of the file after the text segment. */ … … 230 240 231 241 #ifndef N_DATOFF 232 #define N_DATOFF(x) \ 233 (N_TXTOFF(x) + N_TXTSIZE(x)) 234 #endif 235 242 #define N_DATOFF(x) (N_TXTOFF (x) + N_TXTSIZE (x)) 243 #endif 236 244 #ifndef N_TRELOFF 237 #define N_TRELOFF(x) ( N_DATOFF(x) + (x).a_data)245 #define N_TRELOFF(x) (N_DATOFF (x) + (x).a_data) 238 246 #endif 239 247 #ifndef N_DRELOFF 240 #define N_DRELOFF(x) ( N_TRELOFF(x) + (x).a_trsize)248 #define N_DRELOFF(x) (N_TRELOFF (x) + (x).a_trsize) 241 249 #endif 242 250 #ifndef N_SYMOFF 243 #define N_SYMOFF(x) ( N_DRELOFF(x) + (x).a_drsize)251 #define N_SYMOFF(x) (N_DRELOFF (x) + (x).a_drsize) 244 252 #endif 245 253 #ifndef N_STROFF 246 #define N_STROFF(x) ( N_SYMOFF(x) + (x).a_syms)254 #define N_STROFF(x) (N_SYMOFF (x) + (x).a_syms) 247 255 #endif 248 256 … … 250 258 /* Symbols */ 251 259 #ifndef external_nlist 252 struct external_nlist { 253 bfd_byte e_strx[BYTES_IN_WORD]; /* index into string table of name */ 254 bfd_byte e_type[1]; /* type of symbol */ 255 bfd_byte e_other[1]; /* misc info (usually empty) */ 256 bfd_byte e_desc[2]; /* description field */ 257 bfd_byte e_value[BYTES_IN_WORD]; /* value of symbol */ 260 struct external_nlist 261 { 262 bfd_byte e_strx[BYTES_IN_WORD]; /* Index into string table of name. */ 263 bfd_byte e_type[1]; /* Type of symbol. */ 264 bfd_byte e_other[1]; /* Misc info (usually empty). */ 265 bfd_byte e_desc[2]; /* Description field. */ 266 bfd_byte e_value[BYTES_IN_WORD]; /* Value of symbol. */ 258 267 }; 259 268 #define EXTERNAL_NLIST_SIZE (BYTES_IN_WORD+4+BYTES_IN_WORD) 260 269 #endif 261 270 262 struct internal_nlist { 263 unsigned long n_strx; /* index into string table of name */ 264 unsigned char n_type; /* type of symbol */ 265 unsigned char n_other; /* misc info (usually empty) */ 266 unsigned short n_desc; /* description field */ 267 bfd_vma n_value; /* value of symbol */ 271 struct internal_nlist 272 { 273 unsigned long n_strx; /* Index into string table of name. */ 274 unsigned char n_type; /* Type of symbol. */ 275 unsigned char n_other; /* Misc info (usually empty). */ 276 unsigned short n_desc; /* Description field. */ 277 bfd_vma n_value; /* Value of symbol. */ 268 278 }; 269 279 270 280 /* The n_type field is the symbol type, containing: */ 271 281 272 #define N_UNDF 0 /* Undefined symbol */273 #define N_ABS 2 /* Absolute symbol -- defined at particular addr */274 #define N_TEXT 4 /* Text sym -- defined at offset in text seg */275 #define N_DATA 6 /* Data sym -- defined at offset in data seg */276 #define N_BSS 8 /* BSS sym -- defined at offset in zero'd seg */277 #define N_COMM 0x12 /* Common symbol (visible after shared lib dynlink) */278 #define N_FN 0x1f /* File name of .o file */279 #define N_FN_SEQ 0x0C /* N_FN from Sequent compilers (sigh) */282 #define N_UNDF 0 /* Undefined symbol. */ 283 #define N_ABS 2 /* Absolute symbol -- defined at particular addr. */ 284 #define N_TEXT 4 /* Text sym -- defined at offset in text seg. */ 285 #define N_DATA 6 /* Data sym -- defined at offset in data seg. */ 286 #define N_BSS 8 /* BSS sym -- defined at offset in zero'd seg. */ 287 #define N_COMM 0x12 /* Common symbol (visible after shared lib dynlink). */ 288 #define N_FN 0x1f /* File name of .o file. */ 289 #define N_FN_SEQ 0x0C /* N_FN from Sequent compilers (sigh). */ 280 290 /* Note: N_EXT can only be usefully OR-ed with N_UNDF, N_ABS, N_TEXT, 281 291 N_DATA, or N_BSS. When the low-order bit of other types is set, 282 292 (e.g. N_WARNING versus N_FN), they are two different types. */ 283 #define N_EXT 1 /* External symbol (as opposed to local-to-this-file) */293 #define N_EXT 1 /* External symbol (as opposed to local-to-this-file). */ 284 294 #define N_TYPE 0x1e 285 #define N_STAB 0xe0 /* If any of these bits are on, it's a debug symbol */295 #define N_STAB 0xe0 /* If any of these bits are on, it's a debug symbol. */ 286 296 287 297 #define N_INDR 0x0a … … 299 309 300 310 /* These appear as input to LD, in a .o file. */ 301 #define N_SETA 0x14 /* Absolute set element symbol */302 #define N_SETT 0x16 /* Text set element symbol */303 #define N_SETD 0x18 /* Data set element symbol */304 #define N_SETB 0x1A /* Bss set element symbol */311 #define N_SETA 0x14 /* Absolute set element symbol. */ 312 #define N_SETT 0x16 /* Text set element symbol. */ 313 #define N_SETD 0x18 /* Data set element symbol. */ 314 #define N_SETB 0x1A /* Bss set element symbol. */ 305 315 306 316 /* This is output from LD. */ … … 333 343 the target with a displacement of 16 or 32 bits. On the sparc, move 334 344 instructions use an offset of 14 bits, so the offset is stored in 335 the reloc field, and the data in the section is ignored. 336 */ 345 the reloc field, and the data in the section is ignored. */ 337 346 338 347 /* This structure describes a single relocation to be performed. … … 341 350 Likewise, the data-relocation section applies to the data section. */ 342 351 343 struct reloc_std_external { 344 bfd_byte r_address[BYTES_IN_WORD]; /* offset of of data to relocate */ 345 bfd_byte r_index[3]; /* symbol table index of symbol */ 346 bfd_byte r_type[1]; /* relocation type */ 352 struct reloc_std_external 353 { 354 bfd_byte r_address[BYTES_IN_WORD]; /* Offset of of data to relocate. */ 355 bfd_byte r_index[3]; /* Symbol table index of symbol. */ 356 bfd_byte r_type[1]; /* Relocation type. */ 347 357 }; 348 358 … … 367 377 #define RELOC_STD_BITS_RELATIVE_LITTLE ((unsigned int) 0x40) 368 378 369 #define RELOC_STD_SIZE (BYTES_IN_WORD + 3 + 1) /* Bytes per relocation entry */379 #define RELOC_STD_SIZE (BYTES_IN_WORD + 3 + 1) /* Bytes per relocation entry. */ 370 380 371 381 struct reloc_std_internal … … 390 400 /* The next three bits are for SunOS shared libraries, and seem to 391 401 be undocumented. */ 392 unsigned int r_baserel:1; /* Linkage table relative */393 unsigned int r_jmptable:1; /* pc-relative to jump table */394 unsigned int r_relative:1; /* "relative relocation" */402 unsigned int r_baserel:1; /* Linkage table relative. */ 403 unsigned int r_jmptable:1; /* pc-relative to jump table. */ 404 unsigned int r_relative:1; /* "relative relocation". */ 395 405 /* unused */ 396 unsigned int r_pad:1; /* Padding -- set to zero */ 397 }; 398 399 400 /* EXTENDED RELOCS */ 401 402 struct reloc_ext_external { 403 bfd_byte r_address[BYTES_IN_WORD]; /* offset of of data to relocate */ 404 bfd_byte r_index[3]; /* symbol table index of symbol */ 405 bfd_byte r_type[1]; /* relocation type */ 406 bfd_byte r_addend[BYTES_IN_WORD]; /* datum addend */ 406 unsigned int r_pad:1; /* Padding -- set to zero. */ 407 }; 408 409 410 /* EXTENDED RELOCS. */ 411 412 struct reloc_ext_external 413 { 414 bfd_byte r_address[BYTES_IN_WORD]; /* Offset of of data to relocate. */ 415 bfd_byte r_index[3]; /* Symbol table index of symbol. */ 416 bfd_byte r_type[1]; /* Relocation type. */ 417 bfd_byte r_addend[BYTES_IN_WORD]; /* Datum addend. */ 407 418 }; 408 419 … … 431 442 #endif 432 443 433 /* Bytes per relocation entry */444 /* Bytes per relocation entry. */ 434 445 #define RELOC_EXT_SIZE (BYTES_IN_WORD + 3 + 1 + BYTES_IN_WORD) 435 446 436 447 enum reloc_type 437 448 { 438 /* simple relocations*/449 /* Simple relocations. */ 439 450 RELOC_8, /* data[0:7] = addend + sv */ 440 451 RELOC_16, /* data[0:15] = addend + sv */ 441 452 RELOC_32, /* data[0:31] = addend + sv */ 442 /* pc-rel displacement*/453 /* PC-rel displacement. */ 443 454 RELOC_DISP8, /* data[0:7] = addend - pc + sv */ 444 455 RELOC_DISP16, /* data[0:15] = addend - pc + sv */ 445 456 RELOC_DISP32, /* data[0:31] = addend - pc + sv */ 446 /* Special */457 /* Special. */ 447 458 RELOC_WDISP30, /* data[0:29] = (addend + sv - pc)>>2 */ 448 459 RELOC_WDISP22, /* data[0:21] = (addend + sv - pc)>>2 */ … … 453 464 RELOC_SFA_BASE, 454 465 RELOC_SFA_OFF13, 455 /* P.I.C. (base-relative) */466 /* P.I.C. (base-relative). */ 456 467 RELOC_BASE10, /* Not sure - maybe we can do this the */ 457 468 RELOC_BASE13, /* right way now */ 458 469 RELOC_BASE22, 459 /* for some sort of pc-rel P.I.C. (?)*/470 /* For some sort of pc-rel P.I.C. (?) */ 460 471 RELOC_PC10, 461 472 RELOC_PC22, 462 /* P.I.C. jump table */473 /* P.I.C. jump table. */ 463 474 RELOC_JMP_TBL, 464 /* reputedly for shared libraries somehow*/475 /* Reputedly for shared libraries somehow. */ 465 476 RELOC_SEGOFF16, 466 477 RELOC_GLOB_DAT, … … 474 485 RELOC_HLO10, /* data[0:9] = (addend + sv) >> 32 */ 475 486 476 /* 29K relocation types */487 /* 29K relocation types. */ 477 488 RELOC_JUMPTARG, 478 489 RELOC_CONST, 479 490 RELOC_CONSTH, 480 491 481 /* All the new ones I can think of, for sparc v9 */ 482 492 /* All the new ones I can think of, for sparc v9. */ 483 493 RELOC_64, /* data[0:63] = addend + sv */ 484 494 RELOC_DISP64, /* data[0:63] = addend - pc + sv */ … … 490 500 Since this is a clean slate, can we throw away the ones we dont 491 501 understand ? Should we sort the values ? What about using a 492 microcode format like the 68k ? 493 */ 502 microcode format like the 68k ? */ 494 503 NO_RELOC 495 504 }; 496 505 497 506 498 struct reloc_internal { 499 bfd_vma r_address; /* offset of of data to relocate */ 500 long r_index; /* symbol table index of symbol */ 501 enum reloc_type r_type; /* relocation type */ 502 bfd_vma r_addend; /* datum addend */ 507 struct reloc_internal 508 { 509 bfd_vma r_address; /* Offset of of data to relocate. */ 510 long r_index; /* Symbol table index of symbol. */ 511 enum reloc_type r_type; /* Relocation type. */ 512 bfd_vma r_addend; /* Datum addend. */ 503 513 }; 504 514 … … 507 517 508 518 Q. 509 What about archive indexes ? 510 511 */ 519 What about archive indexes ? */ 512 520 513 521 #endif /* __A_OUT_64_H__ */ -
Property cvs2svn:cvs-rev
changed from
-
branches/GNU/src/binutils/include/aout/dynix3.h
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.1.1.2
r608 r609 23 23 24 24 /* struct exec for Dynix 3 25 * 26 * a_gdtbl and a_bootstrap are only for standalone binaries. 27 * Shared data fields are not supported by the kernel as of Dynix 3.1, 28 * but are supported by Dynix compiler programs. 29 */ 30 struct dynix_external_exec { 31 unsigned char e_info[4]; 32 unsigned char e_text[4]; 33 unsigned char e_data[4]; 34 unsigned char e_bss[4]; 35 unsigned char e_syms[4]; 36 unsigned char e_entry[4]; 37 unsigned char e_trsize[4]; 38 unsigned char e_drsize[4]; 39 unsigned char e_g_code[8], e_g_data[8], e_g_desc[8]; 40 unsigned char e_shdata[4]; 41 unsigned char e_shbss[4]; 42 unsigned char e_shdrsize[4]; 43 unsigned char e_bootstrap[44]; 44 unsigned char e_reserved[12]; 45 unsigned char e_version[4]; 46 }; 25 26 a_gdtbl and a_bootstrap are only for standalone binaries. 27 Shared data fields are not supported by the kernel as of Dynix 3.1, 28 but are supported by Dynix compiler programs. */ 29 struct dynix_external_exec 30 { 31 unsigned char e_info[4]; 32 unsigned char e_text[4]; 33 unsigned char e_data[4]; 34 unsigned char e_bss[4]; 35 unsigned char e_syms[4]; 36 unsigned char e_entry[4]; 37 unsigned char e_trsize[4]; 38 unsigned char e_drsize[4]; 39 unsigned char e_g_code[8]; 40 unsigned char e_g_data[8]; 41 unsigned char e_g_desc[8]; 42 unsigned char e_shdata[4]; 43 unsigned char e_shbss[4]; 44 unsigned char e_shdrsize[4]; 45 unsigned char e_bootstrap[44]; 46 unsigned char e_reserved[12]; 47 unsigned char e_version[4]; 48 }; 47 49 48 50 #define EXEC_BYTES_SIZE (128) 49 51 50 /* 51 * All executables under Dynix are demand paged with read-only text, 52 * Thus no NMAGIC. 53 * 54 * ZMAGIC has a page of 0s at virtual 0, 55 * XMAGIC has an invalid page at virtual 0 56 */ 52 /* All executables under Dynix are demand paged with read-only text, 53 Thus no NMAGIC. 54 55 ZMAGIC has a page of 0s at virtual 0, 56 XMAGIC has an invalid page at virtual 0. */ 57 57 #define OMAGIC 0x12eb /* .o */ 58 58 #define ZMAGIC 0x22eb /* zero @ 0, demand load */ -
Property cvs2svn:cvs-rev
changed from
-
branches/GNU/src/binutils/include/aout/hp300hpux.h
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.1.1.2
r608 r609 1 1 /* Special version of <a.out.h> for use under hp-ux. 2 Copyright 1988, 1993, 1995 Free Software Foundation, Inc. */2 Copyright 1988, 1993, 1995, 2001 Free Software Foundation, Inc. */ 3 3 4 4 struct hp300hpux_exec_bytes … … 74 74 75 75 #define N_DATADDR(x) \ 76 ((N_MAGIC(x)==OMAGIC || N_MAGIC(x)==HPUX_DOT_O_MAGIC) ? \ 77 (N_TXTADDR(x)+N_TXTSIZE(x)) \ 78 : (N_SEGSIZE(x) + ((N_TXTADDR(x)+N_TXTSIZE(x)-1) & ~(N_SEGSIZE(x)-1)))) 76 ((N_MAGIC (x) == OMAGIC || N_MAGIC (x) == HPUX_DOT_O_MAGIC) \ 77 ? (N_TXTADDR (x) + N_TXTSIZE (x)) \ 78 : (N_SEGSIZE (x) + ((N_TXTADDR (x) + N_TXTSIZE (x) - 1) \ 79 & ~ (bfd_vma) (N_SEGSIZE (x) - 1)))) 79 80 80 #define _N_BADMACH(x) \ 81 (((N_MACHTYPE (x)) != HP9000S200_ID) && \ 82 ((N_MACHTYPE (x)) != HP98x6_ID)) 81 #define _N_BADMACH(x) \ 82 (((N_MACHTYPE (x)) != HP9000S200_ID) && ((N_MACHTYPE (x)) != HP98x6_ID)) 83 83 84 84 #define _N_BADMAG(x) (N_MAGIC(x) != HPUX_DOT_O_MAGIC \ -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.