Changeset 609 for branches/GNU/src/binutils/ld/mri.c
- Timestamp:
- Aug 16, 2003, 6:59:22 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GNU/src/binutils/ld/mri.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.1.1.2
r608 r609 1 1 /* mri.c -- handle MRI style linker scripts 2 Copyright 1991, 1992, 1993, 1994, 1996, 1997, 1998, 1999, 2000 2 Copyright 1991, 1992, 1993, 1994, 1996, 1997, 1998, 1999, 2000, 2002 3 3 Free Software Foundation, Inc. 4 4 … … 32 32 #include "ldmisc.h" 33 33 #include "mri.h" 34 #include "ldgram.h"34 #include <ldgram.h> 35 35 #include "libiberty.h" 36 36 37 37 struct section_name_struct { 38 38 struct section_name_struct *next; 39 CONSTchar *name;40 CONSTchar *alias;39 const char *name; 40 const char *alias; 41 41 etree_type *vma; 42 42 etree_type *align; … … 63 63 static struct section_name_struct ** 64 64 lookup (name, list) 65 CONSTchar *name;65 const char *name; 66 66 struct section_name_struct **list; 67 67 { … … 85 85 mri_add_to_list (list, name, vma, zalias, align, subalign) 86 86 struct section_name_struct **list; 87 CONSTchar *name;87 const char *name; 88 88 etree_type *vma; 89 CONSTchar *zalias;89 const char *zalias; 90 90 etree_type *align; 91 91 etree_type *subalign; … … 104 104 void 105 105 mri_output_section (name, vma) 106 CONSTchar *name;106 const char *name; 107 107 etree_type *vma; 108 108 { … … 115 115 void 116 116 mri_only_load (name) 117 CONSTchar *name;117 const char *name; 118 118 { 119 119 mri_add_to_list (&only_load, name, 0, 0, 0, 0); … … 150 150 /* Now build the statements for the ldlang machine. */ 151 151 152 /* Atta tch the addresses of any which have addresses,152 /* Attach the addresses of any which have addresses, 153 153 and add the ones not mentioned. */ 154 154 if (address != (struct section_name_struct *) NULL) … … 221 221 etree_type *align = 0; 222 222 etree_type *subalign = 0; 223 struct wildcard_list *tmp; 223 224 224 225 /* See if an alignment has been specified. */ … … 239 240 (etree_type *) NULL); 240 241 base = 0; 241 lang_add_wild (p->name, false, (char *) NULL, false, false, NULL); 242 tmp = (struct wildcard_list *) xmalloc (sizeof *tmp); 243 tmp->next = NULL; 244 tmp->spec.name = p->name; 245 tmp->spec.exclude_name_list = NULL; 246 tmp->spec.sorted = FALSE; 247 lang_add_wild (NULL, tmp, FALSE); 242 248 243 249 /* If there is an alias for this section, add it too. */ 244 250 for (aptr = alias; aptr; aptr = aptr->next) 245 251 if (strcmp (aptr->alias, p->name) == 0) 246 lang_add_wild (aptr->name, false, (char *) NULL, false, false, NULL); 252 { 253 tmp = (struct wildcard_list *) xmalloc (sizeof *tmp); 254 tmp->next = NULL; 255 tmp->spec.name = aptr->name; 256 tmp->spec.exclude_name_list = NULL; 257 tmp->spec.sorted = FALSE; 258 lang_add_wild (NULL, tmp, FALSE); 259 } 247 260 248 261 lang_leave_output_section_statement 249 262 (0, "*default*", (struct lang_output_section_phdr_list *) NULL, 250 "*default*");263 NULL); 251 264 252 265 p = p->next; … … 259 272 void 260 273 mri_load (name) 261 CONSTchar *name;274 const char *name; 262 275 { 263 276 base = 0; … … 271 284 void 272 285 mri_order (name) 273 CONSTchar *name;286 const char *name; 274 287 { 275 288 mri_add_to_list (&order, name, 0, 0, 0, 0); … … 278 291 void 279 292 mri_alias (want, is, isn) 280 CONSTchar *want;281 CONSTchar *is;293 const char *want; 294 const char *is; 282 295 int isn; 283 296 { … … 300 313 void 301 314 mri_name (name) 302 CONSTchar *name;315 const char *name; 303 316 { 304 317 lang_add_output (name, 1); … … 307 320 void 308 321 mri_format (name) 309 CONSTchar *name;322 const char *name; 310 323 { 311 324 if (strcmp (name, "S") == 0) … … 324 337 void 325 338 mri_public (name, exp) 326 CONSTchar *name;339 const char *name; 327 340 etree_type *exp; 328 341 { … … 332 345 void 333 346 mri_align (name, exp) 334 CONSTchar *name;347 const char *name; 335 348 etree_type *exp; 336 349 { … … 340 353 void 341 354 mri_alignmod (name, exp) 342 CONSTchar *name;355 const char *name; 343 356 etree_type *exp; 344 357 { -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.