Changeset 475
- Timestamp:
- Jul 29, 2003, 9:42:44 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/src/emx/src/emxomf/emxomf.c (modified) (9 diffs, 1 prop)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/emx/src/emxomf/emxomf.c
-
Property cvs2svn:cvs-rev
changed from
1.15to1.16
r474 r475 290 290 static int weak_list_altered; 291 291 292 /* The file name of the weak symbol list file */ 292 /* The file name of the weak symbol list file. 293 If NULL the new method is used, if not NULL the old method is used. */ 293 294 static char *weak_list_filename; 294 295 … … 621 622 return; 622 623 623 /* Find and open the weak symbol list file */ 624 /* Find and open the weak symbol list file 625 #483: If not present we'll use the new method. */ 624 626 weak_list_filename = getenv ("GCC_WEAKSYMS"); 625 627 if (!weak_list_filename) 626 weak_list_filename = "weaksyms.omf";628 ; 627 629 wf = fopen (weak_list_filename, "r"); 628 630 if (!wf) … … 751 753 { 752 754 struct lname *p; 755 756 753 757 754 758 /* Walk through the list of known OMF-style names. If there is a … … 1185 1189 1186 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1187 1244 /* Write ALIAS records into the output file for all indirect 1188 1245 references. */ … … 1239 1296 const char *name, *pub_name; 1240 1297 dword address; 1298 1241 1299 1242 1300 started = FALSE; … … 1248 1306 { 1249 1307 name = str_ptr + sym_ptr[i].n_un.n_strx; 1250 if ((sym_ptr[i].n_type & N_EXT) 1251 || (type == N_TEXT && strncmp (name, "___POST$", 8) == 0)) 1308 if ( (sym_ptr[i].n_type & N_EXT) 1309 || (type == N_TEXT && strncmp (name, "___POST$", 8) == 0) 1310 || (sym_ptr[i].n_type >= N_WEAKU && sym_ptr[i].n_type <= N_WEAKB) 1311 ) 1252 1312 { 1253 1313 if ((sym_ptr[i].n_type & N_EXT) && out_lib != NULL) … … 1260 1320 error (lib_errmsg); 1261 1321 } 1322 1323 1324 1325 1326 1327 1328 1329 1262 1330 if (started && !fits (strlen (name) + 6)) 1263 1331 { … … 1333 1401 write_pubdef1 (N_TEXT, text_index, FALSE, 0); 1334 1402 write_pubdef1 (N_TEXT, text_index, TRUE, 0); 1403 1404 1405 1406 1407 1335 1408 /* kso #456 2003-06-10: The debugger looks for 'main' not '_main'. */ 1336 1409 write_pubdef_main (); 1337 1410 write_pubdef1 (N_DATA, udat_index, FALSE, text_size); 1338 1411 write_pubdef1 (N_DATA, udat_index, TRUE, text_size); 1412 1413 1414 1415 1416 1339 1417 write_pubdef1 (N_BSS, bss_index, FALSE, text_size + data_size); 1340 1418 write_pubdef1 (N_BSS, bss_index, TRUE, text_size + data_size); 1419 1420 1421 1422 1423 1341 1424 } 1342 1425 … … 3218 3301 write_libs (); 3219 3302 write_debug_style (); 3303 3304 3305 3306 3220 3307 3221 3308 /* Define all the OMF names (LNAMES record). Of course, we must not -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.
