- Timestamp:
- May 20, 2020 2:33:15 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kmk/kmkbuiltin/kDepObj.c
r3324 r3341 772 772 unsigned iSHdr; 773 773 KPCUINT u; 774 KBOOL fDebugS = K_FALSE; 774 775 int rcRet = 2; 775 776 int rc; … … 806 807 if (rcRet != 2) 807 808 return rc; 809 fDebugS = K_TRUE; 808 810 } 809 811 dprintf(("#%d: %.8s\n", iSHdr, paSHdrs[iSHdr].Name)); 810 812 } 813 814 /* If we found no dependencies but did find a .debug$S section, check if 815 this is a case where the compile didn't emit any because there is no 816 code in this compilation unit. */ 817 if (rcRet == 2) 818 { 819 if (fDebugS) 820 { 821 for (iSHdr = 0; iSHdr < cSHdrs; iSHdr++) 822 if (!memcmp(paSHdrs[iSHdr].Name, ".text", sizeof(".text") - 1)) 823 return kDepErr(pThis, 2, "%s: no dependencies (has text).", pThis->pszFile); 824 warnx(pThis->pCtx, "%s: no dependencies, but also no text, so probably (mostly) harmless.", pThis->pszFile); 825 return 0; 826 } 827 kDepErr(pThis, 2, "%s: no dependencies.", pThis->pszFile); 828 } 829 811 830 return rcRet; 812 831 } … … 1163 1182 if (!pInput) 1164 1183 return err(pCtx, 1, "Failed to open input file '%s'", argv[i]); 1184 This.pszFile = argv[i]; 1165 1185 fInput = 1; 1166 1186 }
Note:
See TracChangeset
for help on using the changeset viewer.