Commit Graph

771 Commits

Author SHA1 Message Date
mdkinney 3edf127e48 1) Simplify implementation by reading the entire input file into memory, modifying the buffer in memory, and then writing the entire buffer from memory to the output file.
2) Zero all optional fields in the PE/COFF Optional Header

3) Zero the .pdata section of X64 images that do not have a Debug Directory

4) Strip zero padding at the end of the .reloc section.




git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1565 6f19259b-4bc3-4df7-8a09-765794883524
2006-09-19 18:58:55 +00:00
mdkinney 0e84e0d7bd Fix buffer overflow when the raw size of a section and the virtual size of a section are not the same.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1564 6f19259b-4bc3-4df7-8a09-765794883524
2006-09-19 18:53:32 +00:00
mdkinney 202515b47d Compute the end address of a section read from a file using the SizeOfRawData instead of VirtualSize, because the PE/COFF image format allows the SizeOfRawData to be smaller then VirtualSize.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1563 6f19259b-4bc3-4df7-8a09-765794883524
2006-09-19 18:52:07 +00:00
mdkinney 928fbe8f1c Use a 64-bit Optional Header when a 64-bit image is detected
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1562 6f19259b-4bc3-4df7-8a09-765794883524
2006-09-19 18:49:56 +00:00
mdkinney b7b99c7662 Enable source level debug of all tools
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1561 6f19259b-4bc3-4df7-8a09-765794883524
2006-09-19 18:48:21 +00:00
mdkinney 1986771518 Enable source level debug of all tools
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1560 6f19259b-4bc3-4df7-8a09-765794883524
2006-09-19 18:46:40 +00:00
mdkinney a6b6b67a48 Enable source level debug of all tools
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1559 6f19259b-4bc3-4df7-8a09-765794883524
2006-09-19 18:46:15 +00:00
jwang36 34f40a4aca Fixed an issue which will cause dependency check failure
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1558 6f19259b-4bc3-4df7-8a09-765794883524
2006-09-19 07:04:08 +00:00
alfred 77dd49a7d1 add EdkModule Guid
nmake.()

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1557 6f19259b-4bc3-4df7-8a09-765794883524
2006-09-19 06:42:24 +00:00
jwang36 d946661a82 1) Added dependency check for flashmap, genfvimage, peirebase tasks
2) Added code in FpdParserTask.java to avoid re-generate FV.inf file
3) Added isEmpty() to ToolArg class to check if an argument is empty or not

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1556 6f19259b-4bc3-4df7-8a09-765794883524
2006-09-19 05:55:19 +00:00
hche10x d1760183fd 1. Fix EDKT277 "ModuleType missing when creating a new Module"
2. Fix EDKT278 "Can NOT save file after generate a new GUID for a MSA"

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1555 6f19259b-4bc3-4df7-8a09-765794883524
2006-09-19 02:14:15 +00:00
lhauch 13bb49b1fb Adding merge command line program that merges multiple MSA modules into a single MSA file. View readme.txt to see rules and usage. This is the batch file that executes this command on a Windows* system.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1554 6f19259b-4bc3-4df7-8a09-765794883524
2006-09-18 22:02:52 +00:00
lhauch 0e771cd32f Adding merge command line program that merges multiple MSA modules into a single MSA file. View readme.txt to see rules and usage.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1553 6f19259b-4bc3-4df7-8a09-765794883524
2006-09-18 22:02:06 +00:00
jwang36 e5890ee5f8 Added check to skip generating target.txt and tools_def.txt if they already exist.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1550 6f19259b-4bc3-4df7-8a09-765794883524
2006-09-18 10:36:58 +00:00
qouyang 3e73f377a8 Fixed EDK258.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1549 6f19259b-4bc3-4df7-8a09-765794883524
2006-09-18 09:56:40 +00:00
jwang36 2f2c367ad8 Added synchronized to getCommandSetting to solve multi-thread build issue
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1546 6f19259b-4bc3-4df7-8a09-765794883524
2006-09-15 09:35:46 +00:00
jlin16 ac66fadf6f remove comments before ModuleSA and library instance , if any, in xml file when deleting a module or instance from FPD file.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1545 6f19259b-4bc3-4df7-8a09-765794883524
2006-09-15 09:13:04 +00:00
lgao4 7838808993 Add EntryPoint info of module into Fv.map file, which is used to debug when no serial output.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1544 6f19259b-4bc3-4df7-8a09-765794883524
2006-09-15 07:53:15 +00:00
jwang36 1744b047bb Added "synchronized" to getToolChainInfo() to solve synchronization issue.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1543 6f19259b-4bc3-4df7-8a09-765794883524
2006-09-15 06:18:55 +00:00
jwang36 e0ab6c7b60 fixed a typo
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1536 6f19259b-4bc3-4df7-8a09-765794883524
2006-09-14 08:36:26 +00:00
jwang36 0fdb42ac46 1) Applied ToolArg and FileArg class to represent tool arguments
2) Unified the tool output message and exception handling
3) Cleaned the coding style
4) Removed used code

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1535 6f19259b-4bc3-4df7-8a09-765794883524
2006-09-14 08:35:38 +00:00
alfred 39e5e412f9 add .. support
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1534 6f19259b-4bc3-4df7-8a09-765794883524
2006-09-14 08:09:54 +00:00
jlin16 ce32083fca Add Binary or Source type check before providing PCD item choices when editing platform PCDBuildData.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1533 6f19259b-4bc3-4df7-8a09-765794883524
2006-09-14 07:06:02 +00:00
wuyizhong 2a9060e294 For stand-alone build, generate Platform_build.xml and call prebuild firstly.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1532 6f19259b-4bc3-4df7-8a09-765794883524
2006-09-14 02:39:02 +00:00
jlin16 73d9b1c494 For one library class, list all library instances from all packages in workspace.
Fix the PCD memory database inconsistency problem when changing PCD item type in platform.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1531 6f19259b-4bc3-4df7-8a09-765794883524
2006-09-13 14:51:47 +00:00
qhuang8 10e4f9901c 1.Support to drop Pei Services Table Pointer at best.
2.Change the comments style of Migration tool.
3.Fix a bug in identify function header.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1530 6f19259b-4bc3-4df7-8a09-765794883524
2006-09-13 10:00:18 +00:00
qouyang 5c4eec41d7 (Customized Compression)If setting the EncapsulationType="Compress", Tool will transfer it to sectiontype="EFI_SECTION_COMPRESS" in <gensection>element of <genffsFile> task.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1529 6f19259b-4bc3-4df7-8a09-765794883524
2006-09-13 09:20:36 +00:00
wuyizhong d965d1f63f Update log.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1528 6f19259b-4bc3-4df7-8a09-765794883524
2006-09-13 07:40:49 +00:00
wuyizhong d8956f143e Add warning message for single module build if multi-thread enabled.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1527 6f19259b-4bc3-4df7-8a09-765794883524
2006-09-13 07:14:54 +00:00
wuyizhong d3945b9d4c Auto close multi-thread flag when stand-alone module build. Also change some logs.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1526 6f19259b-4bc3-4df7-8a09-765794883524
2006-09-13 07:02:50 +00:00
qhuang8 9f98dbb76f Enhance recognizing Macro/Type defined in Library.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1525 6f19259b-4bc3-4df7-8a09-765794883524
2006-09-13 07:00:19 +00:00
wuyizhong e38eb39cb0 Add more comments.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1522 6f19259b-4bc3-4df7-8a09-765794883524
2006-09-13 03:32:00 +00:00
wuyizhong 89e1408fde To locate module precisely in stand-alone module build. Except Module Guid, add MSA file path to consider.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1521 6f19259b-4bc3-4df7-8a09-765794883524
2006-09-13 03:25:23 +00:00
jwang36 93f5dd0a0e 1) Changed ToolArg class to abstract generic arguments of a tool
2) Added FileArg class to abstract arguments which represent the path of a file
3) Changed the log method to EdkLog and the message format for flashmap, fwimage, gendepex, genfvimage, gensection, peirebase, strgather and vfrcompile tool. And changed these tools to use ToolArg and FileArg to keep their arguments.
4) Added more verbose message for OnDependency task
5) Changed MakeDeps tool to insert a file end flag. This is very useful when dependency check is broken occasionally
6) Cleaned the coding style of java code


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1519 6f19259b-4bc3-4df7-8a09-765794883524
2006-09-13 02:15:32 +00:00
jlin16 ed850fbf8b Fix the problem of not displaying library instances for multiple archs in supArchList.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1517 6f19259b-4bc3-4df7-8a09-765794883524
2006-09-12 09:38:28 +00:00
wuyizhong 498e9021f5 Update LOG process.
1. Sort all log messages by module. Logs at the bottom of build.log is all logs already print to cmd
2. Once one module occurs error, print all logs belongs to this module’s


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1516 6f19259b-4bc3-4df7-8a09-765794883524
2006-09-12 07:16:25 +00:00
jwang36 63062e1ead Merged the <libset> in <GenDll> to avoid warning message.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1515 6f19259b-4bc3-4df7-8a09-765794883524
2006-09-12 02:14:45 +00:00
ajfish 6d8597dcf0 Updated the default to parallel build. Even on a single core build is faster with threads. Set MAX thread number to 1+ max core in your system.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1514 6f19259b-4bc3-4df7-8a09-765794883524
2006-09-11 19:11:37 +00:00
qhuang8 733d48fec3 Add migration rule for Build Guid Hob.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1513 6f19259b-4bc3-4df7-8a09-765794883524
2006-09-11 13:49:03 +00:00
qhuang8 d47b990060 Handle module entry point special case for self-relocated modules. (Replace references of original module entry point with _ModuleEntryPoint)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1512 6f19259b-4bc3-4df7-8a09-765794883524
2006-09-11 12:17:47 +00:00
qhuang8 06d1ff5b98 Remove the special case handling of EfiInitializeDriverLib & DxeIntializeDriverLib
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1511 6f19259b-4bc3-4df7-8a09-765794883524
2006-09-11 09:53:28 +00:00
wuyizhong 2e39c71883 Fix EDKT263. Change save dialog to open dialog. Update all Frame's titles.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1510 6f19259b-4bc3-4df7-8a09-765794883524
2006-09-11 09:12:17 +00:00
wuyizhong 7dd2b2ad65 git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1509 6f19259b-4bc3-4df7-8a09-765794883524 2006-09-11 07:39:08 +00:00
wuyizhong d039f539ae Add two attributes to target.template. MULTIPLE_THREAD is to enable/disable multi-thread build. MAX_CONCURRENT_THREAD_NUMBER is used to specify the number of concurrent threads.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1508 6f19259b-4bc3-4df7-8a09-765794883524
2006-09-11 06:42:49 +00:00
wuyizhong 3067c4b0c0 Remove TianoToolsException.java. Add code to stop all threads once one corrupts.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1507 6f19259b-4bc3-4df7-8a09-765794883524
2006-09-11 06:29:26 +00:00
qouyang a1ffb10f21 Support calling customized compression tool in FrameworkTask.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1506 6f19259b-4bc3-4df7-8a09-765794883524
2006-09-10 12:51:19 +00:00
jlin16 54aa8673cb Modify FV attribute editor and generate FvImage Attributes in FPD file.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1505 6f19259b-4bc3-4df7-8a09-765794883524
2006-09-10 07:45:21 +00:00
wuyizhong 2eb7d78dcd Adding new Logger instead of Ant's.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1502 6f19259b-4bc3-4df7-8a09-765794883524
2006-09-08 09:22:36 +00:00
hche10x 4917d9ddc3 1. Add function "Refresh" in main UI
2. Add function to add modules to GlobalData when clone a package.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1501 6f19259b-4bc3-4df7-8a09-765794883524
2006-09-08 01:58:04 +00:00
alfred 63e30d14b4 nothing
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1500 6f19259b-4bc3-4df7-8a09-765794883524
2006-09-08 01:51:33 +00:00