Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Better generic entrypoint handling |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | sourceforge |
Files: | files | file ages | folders |
SHA1: |
08f855ffb188e8a1865848160da8d5a9 |
User & Date: | rmsimpson 2006-01-27 22:21:50.000 |
Context
2006-01-27
| ||
22:41 | Documentation updates check-in: 5b7117d61a user: rmsimpson tags: sourceforge | |
22:21 | Better generic entrypoint handling check-in: 08f855ffb1 user: rmsimpson tags: sourceforge | |
06:13 | Fixed a bug in aggregate functions with empty resultsets check-in: ab8b2729bb user: rmsimpson tags: sourceforge | |
Changes
Changes to bin/tools/mergebin.exe.
cannot compute difference between binary files
Changes to tools/mergebin/mergebin.cpp.
︙ | |||
10 11 12 13 14 15 16 17 18 19 20 21 22 23 | 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | + + + + + | #include "MetaDataTables.h" #include "TableData.h" void DumpCLRInfo(LPCTSTR pszFile); void MergeModules(LPCTSTR pszAssembly, LPCTSTR pszNative, LPCTSTR pszSection); void DumpCLRPragma(LPCTSTR pszAssembly, LPCTSTR pszSection); typedef struct EXTRA_STUFF { DWORD dwNativeEntryPoint; } EXTRA_STUFF, *LPEXTRA_STUFF; int _tmain(int argc, _TCHAR* argv[]) { if (argc == 1) { _tprintf(_T( "MERGEBIN - Merges a pure .NET assembly with a native DLL\n \ Syntax: MERGEBIN [/I:assembly] [/S:sectionname assembly nativedll]\n \ |
︙ | |||
171 172 173 174 175 176 177 | 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 | - + | if (!GetMinMaxCOR20RVA(peFile, dwMinRVA, dwMaxRVA)) { _tprintf(_T("Unable to retrieve .NET assembly information for file %s\n"), pszFile); return; } |
︙ | |||
200 201 202 203 204 205 206 | 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 | + + + - + - + + + - + + + + + - + | // %s\n\n\ #include <windef.h>\n\n\ #pragma data_seg(\"%s\")\n\ #pragma comment(linker, \"/SECTION:%s,ER\")\n\ char __ph[%d] = {0}; // The number of bytes to reserve\n\ #pragma data_seg()\n\n\ typedef BOOL (WINAPI *DLLMAIN)(HANDLE, DWORD, LPVOID);\n\ typedef struct EXTRA_STUFF\n\ {\n\ DWORD dwNativeEntryPoint;\n\ |
︙ | |||
301 302 303 304 305 306 307 308 309 310 311 312 313 314 | 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 | + | PIMAGE_COR20_HEADER pCor; PIMAGE_NT_HEADERS32 pNT; PIMAGE_NT_HEADERS64 pNT64; int diffRVA; CTableData *p; DWORD *pdwRVA; DWORD dwRows; LPEXTRA_STUFF pExtra; // Open the .NET assembly hr = peFile.Open(pszAssembly); if (FAILED(hr)) return; // Scan the .NET assembly and find the block of .NET code specified in the .NET metadata if (!GetMinMaxCOR20RVA(peFile, dwMinRVA, dwMaxRVA)) |
︙ | |||
328 329 330 331 332 333 334 | 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 | - + - + + + + | if (!pSection) { _tprintf(_T("Unable to find section %s in file\n"), pszSection); return; } // If the section isn't large enough, tell the user how large it needs to be |
︙ | |||
376 377 378 379 380 381 382 | 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 | + - + + - + | pNT = peDest; pNT64 = peDest; // Fixup the NT header on the native DLL to include the new .NET header if (pNT) { pExtra->dwNativeEntryPoint = pNT->OptionalHeader.AddressOfEntryPoint; |
︙ |
Changes to tools/mergebin/mergebin.vcproj.
︙ | |||
134 135 136 137 138 139 140 | 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 | - + | Name="VCResourceCompilerTool" /> <Tool Name="VCPreLinkEventTool" /> <Tool Name="VCLinkerTool" |
︙ |