Changeset 2692
- Timestamp:
- Apr 11, 2006, 12:50:06 AM (19 years ago)
- Location:
- trunk/emx
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/emx/ChangeLog.emx
r2690 r2692 1 1 /* $Id$ */ 2 3 2006-04-10: knut st. osmundsen <bird-gccos2-spam@anduin.net> 4 - emxomfld, weakld: 5 o #89: more wlink stuff. 6 o Fixed the exp=int .def errors in weakld. 2 7 3 8 2006-04-01: knut st. osmundsen <bird-gccos2-spam@anduin.net> -
trunk/emx/src/emxomf/emxomfld.c
r2691 r2692 1050 1050 if (!stricmp(linker_type, "LINK386")) 1051 1051 fFlags |= WLDC_LINKER_LINK386; 1052 else if (!stricmp(linker_type, "WLINK")) 1053 fFlags |= WLDC_LINKER_WLINK; 1052 1054 1053 1055 for (pOpt = options; pOpt; pOpt = pOpt->next) … … 1443 1445 response_file = NULL; 1444 1446 } 1445 if (response_fname[0] != '\0') 1446 { 1447 remove (response_fname); 1448 response_fname[0] = '\0'; 1449 } 1450 if (weakobj_fname[0] != '\0') 1451 { 1452 remove (weakobj_fname); 1453 weakobj_fname[0] = '\0'; 1454 } 1455 if (weakdef_fname[0] != '\0') 1456 { 1457 remove (weakdef_fname); 1458 weakdef_fname[0] = '\0'; 1459 } 1460 for (; conv_list; conv_list = conv_list->next) 1461 remove (conv_list->name); 1447 if (opt_t <= 1) 1448 { 1449 if (response_fname[0] != '\0') 1450 { 1451 remove (response_fname); 1452 response_fname[0] = '\0'; 1453 } 1454 if (weakobj_fname[0] != '\0') 1455 { 1456 remove (weakobj_fname); 1457 weakobj_fname[0] = '\0'; 1458 } 1459 if (weakdef_fname[0] != '\0') 1460 { 1461 remove (weakdef_fname); 1462 weakdef_fname[0] = '\0'; 1463 } 1464 for (; conv_list; conv_list = conv_list->next) 1465 remove (conv_list->name); 1466 } 1462 1467 } 1463 1468 … … 1469 1474 "Copyright (c) 1992-1996 by Eberhard Mattes\n" 1470 1475 "Copyright (c) 2003 by InnoTek Systemberatung GmbH\n" 1471 "Copyright (c) 2003-200 4by Knut St. Osmundsen\n"1476 "Copyright (c) 2003-2006 by Knut St. Osmundsen\n" 1472 1477 "\n", stderr); 1473 1478 fputs ("Usage: emxomfld -o <file> [-l <lib>] [-L <libdir>] [-T <base>] [-igtsS]\n" … … 1652 1657 case 't': 1653 1658 case 'i': /* Trace the linking process, sending /INFO to the IBM/M$ linker. */ 1654 opt_t = TRUE;1659 opt_t++; 1655 1660 break; 1656 1661 … … 2085 2090 /* standard stuff */ 2086 2091 2087 //if (!strip_symbols)2088 // put_arg ("debug hll", FALSE, FALSE);2092 if (!strip_symbols) 2093 fprintf (response_file, "DEBUG HLL\n"); 2089 2094 fprintf (response_file, "OPTION QUIET\n"); 2090 2095 fprintf (response_file, "OPTION OSNAME='OS/2 EMX'\n"); … … 2112 2117 /* Add the linker options specified with -O. */ 2113 2118 2114 put_args (options, FALSE); 2119 for (pcur = options; pcur; pcur = pcur->next) 2120 fprintf (response_file, "%s\n", pcur->name); 2115 2121 2116 2122 /* Put the object file names onto the command line. */ -
trunk/emx/src/emxomf/weakld.c
r2673 r2692 1998 1998 { 1999 1999 pSym->fFlags |= WLDSF_ALIAS; 2000 pSym->fFlags &= ~WLDSF_UNDEF; 2000 2001 pSym->pAliasFor = pSymAlias; 2001 2002 } … … 3498 3499 { 3499 3500 cch = sprintf(szTmp, " \"%s\" = \"%s\"", pStmt->export.entryname, pSymExp->pszWeakName); 3500 pSymExp->fFlags |= WLDSF_WEAKALIASDONE; 3501 if (!(pParam->pWld->fFlags & WLDC_LINKER_WLINK)) 3502 pSymExp->fFlags |= WLDSF_WEAKALIASDONE; 3501 3503 } 3502 3504 if (pStmt->export.flags & _MDEP_ORDINAL) … … 3688 3690 /* now see if there are any aliases in __declspec(dllexport) statements. */ 3689 3691 if (!rc) 3690 rc = symEnum(pWld, &pWld->Global, 3691 WLDSF_EXPORT | WLDSF_WEAK, WLDSF_EXPORT | WLDSF_WEAK | WLDSF_EXPORT_DEF | WLDSF_WEAKALIASDONE, 3692 wldGenerateDefExportEnum, ¶m); 3692 { 3693 if (0)//pWld->fFlags & WLDC_LINKER_WLINK) 3694 rc = symEnum(pWld, &pWld->Global, 3695 WLDSF_EXPORT | WLDSF_EXPORT_DEF | WLDSF_WEAK, WLDSF_EXPORT | WLDSF_EXPORT_DEF | WLDSF_WEAK | WLDSF_WEAKALIASDONE, 3696 wldGenerateDefExportEnum, ¶m); 3697 else 3698 rc = symEnum(pWld, &pWld->Global, 3699 WLDSF_EXPORT | WLDSF_WEAK, WLDSF_EXPORT | WLDSF_WEAK | WLDSF_EXPORT_DEF | WLDSF_WEAKALIASDONE, 3700 wldGenerateDefExportEnum, ¶m); 3701 } 3693 3702 3694 3703 /* copy the rest of the file if any changes was made. */ -
trunk/emx/src/emxomf/weakld.h
r941 r2692 44 44 WLDC_CASE_INSENSITIVE = 4, 45 45 /** The linker is link386. */ 46 WLDC_LINKER_LINK386 = 0x1000 46 WLDC_LINKER_LINK386 = 0x1000, 47 /** The linker is wlink. */ 48 WLDC_LINKER_WLINK = 0x2000 47 49 }; 48 50
Note:
See TracChangeset
for help on using the changeset viewer.