- Timestamp:
- Jun 5, 2005, 6:17:00 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/src/emx/src/ld/ld.c (modified) (20 diffs, 1 prop)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/emx/src/ld/ld.c
-
Property cvs2svn:cvs-rev
changed from
1.16to1.17
r1997 r1998 63 63 64 64 /* If compiled with GNU C, use the built-in alloca */ 65 #ifdef __GNUC__ 66 # define alloca __builtin_alloca 67 #else 68 # include "alloca.h" 69 #endif 70 65 #include "alloca.h" 71 66 #include "getopt.h" 72 67 … … 1957 1952 { 1958 1953 read_entry_symbols (desc, entry); 1959 entry->strings = (char *) alloca(entry->strs_size);1954 entry->strings = (char *) (entry->strs_size); 1960 1955 read_entry_strings (desc, entry); 1961 1956 enter_file_symbols (entry); 1962 entry->strings = 0; 1957 free (entry->strings); 1958 entry->strings = NULL; 1963 1959 } 1964 1960 … … 2533 2529 { 2534 2530 read_entry_symbols (desc, subentry); 2535 subentry->strings = (char *) alloca(subentry->strs_size);2531 subentry->strings = (char *) (subentry->strs_size); 2536 2532 read_entry_strings (desc, subentry); 2537 2533 … … 2550 2546 entry->subfiles = subentry; 2551 2547 *prev_addr = subentry; 2552 subentry->strings = 0; /* Since space will dissapear on return */ 2553 } 2548 } 2549 free (subentry->strings); 2550 subentry->strings = NULL; 2554 2551 } 2555 2552 … … 3062 3059 *end = entry->symbols + entry->syms_size / sizeof (struct nlist); 3063 3060 3064 entry->strings = (char *) alloca(entry->strs_size);3061 entry->strings = (char *) (entry->strs_size); 3065 3062 read_entry_strings (file_open (entry), entry); 3066 3063 … … 3080 3077 ((symbol *)p->n_un.n_name)->name, p->n_value); 3081 3078 3082 entry->strings = 0; /* All done with them. */ 3079 free (entry->strings); 3080 entry->strings = NULL; /* All done with them. */ 3083 3081 } 3084 3082 … … 3451 3449 int number_of_syms = entry->syms_size / sizeof (struct nlist); 3452 3450 unsigned char *nlist_bitvector 3453 = (unsigned char *) alloca((number_of_syms >> 3) + 1);3451 = (unsigned char *) -
Property cvs2svn:cvs-rev
changed from
