Commit Graph

101 Commits

Author SHA1 Message Date
mdkinney 0411bcafa0 Fixed FwImage/fwimage.c to guarantee that the raw size of a section is a multiple of the file alignment.
Revert PeCoffLoader/BasePeCoff.c and PeiRebase/PeiRebaseExe.c back to the previous revisions.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1582 6f19259b-4bc3-4df7-8a09-765794883524
2006-09-21 03:11:13 +00:00
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
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 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
lgao4 a651e231ec Fix EdkII tracker 223 to enhance genfvimage tool to support TE image format. If so, PEI CORE can contain one TE section to reduce size.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1431 6f19259b-4bc3-4df7-8a09-765794883524
2006-09-01 12:30:25 +00:00
jwang36 1fa1cb752a - Fixed EDKT146; The override warning message has been reduced to almost none.
- Changed MakeDeps tool to generate .dep file which can be used directly by ANT task wrapper
- Made several code optimizations and format clean



git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1324 6f19259b-4bc3-4df7-8a09-765794883524
2006-08-18 10:25:20 +00:00
vanjeff 9c7790d2cb 1. Adjust might be 64bit, so we need to typecast it to UINT32 firstly.
2. Synchronization modification described in Tracker EDKT182 to all dependent files.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1270 6f19259b-4bc3-4df7-8a09-765794883524
2006-08-15 06:35:47 +00:00
ajfish 396974d645 Fixed issue with new MAP file feature a fprintf was using a pointer to the .PDB file that was in data that had been freed. Moved the fprint before the free and also print out if the image is PE32 or TE now in the map file.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1241 6f19259b-4bc3-4df7-8a09-765794883524
2006-08-11 18:08:43 +00:00
qouyang a2733a33ab Fix EDKT186.
Fix EDKT148.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1230 6f19259b-4bc3-4df7-8a09-765794883524
2006-08-10 06:09:10 +00:00
wuyizhong 205437772a Set different arguments for gcc3.x.x and gcc4.x.x. Suppress pointer-sign warning in gcc4.x.x.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1221 6f19259b-4bc3-4df7-8a09-765794883524
2006-08-09 03:14:51 +00:00
wuyizhong 9776330c42 Remove warning message in MAC GCC tool build
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1212 6f19259b-4bc3-4df7-8a09-765794883524
2006-08-08 06:16:49 +00:00
ajfish 5049fd31d6 Updated PeiRebase to produce a map file of the relocations done by this tool
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1192 6f19259b-4bc3-4df7-8a09-765794883524
2006-08-05 17:22:18 +00:00
qouyang 8f7f05d527 Fix EDKT140(CompressDll.dll does not build under cygwin gcc).
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1188 6f19259b-4bc3-4df7-8a09-765794883524
2006-08-04 03:17:05 +00:00
wuyizhong ca9ea8d956 GenTeImage can't work well with Linux is caused by its parameter parsing. GenTeImage will replace all Parameter's first character to '-' if start with '/'. Actually, it is not necessary to deal with, after remove this processor, it works well now.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1185 6f19259b-4bc3-4df7-8a09-765794883524
2006-08-03 09:40:28 +00:00
klu2 5afd499259 Fix makefile's parameter bug for OSX building.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1184 6f19259b-4bc3-4df7-8a09-765794883524
2006-08-03 08:53:53 +00:00
lhauch af1dd46d37 Updated to handle cygwin/gcc and moved msvc,gcc property settings to the TianoTools/build.xml file. Properties are inherited, so we only need to set them one. Cleaned up clean and cleanall targets to remove the executables and library files. Added makefile.cygwin to antlr and dlg programs to generate the .exe needed for cygwin.
FlashMap.c needed a newline at the end of the file to remove a warning message in cygwin.


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1174 6f19259b-4bc3-4df7-8a09-765794883524
2006-08-01 23:58:18 +00:00
wuyizhong af8eab8443 Miss loop variable incremental, otherwise, will cause dead loop.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1168 6f19259b-4bc3-4df7-8a09-765794883524
2006-08-01 08:39:26 +00:00
klu2 2eaa5ba11d FlashMap can not work correctly in unix GCC because the windows path char "\" exist in parameter.
I fix it by adding a NormalizePath function.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1152 6f19259b-4bc3-4df7-8a09-765794883524
2006-07-30 08:09:57 +00:00
bbahnsen 460fa4a25b A couple of cleanups in the TianoTools build.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1104 6f19259b-4bc3-4df7-8a09-765794883524
2006-07-26 17:25:15 +00:00
qouyang ea62f12ac6 fixed EDKT139.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1101 6f19259b-4bc3-4df7-8a09-765794883524
2006-07-26 10:18:56 +00:00
bbahnsen 881c267b11 Add x64 headers.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1096 6f19259b-4bc3-4df7-8a09-765794883524
2006-07-25 21:24:27 +00:00
bbahnsen c7c42e4001 Support building on x64 hosts.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1095 6f19259b-4bc3-4df7-8a09-765794883524
2006-07-25 21:08:04 +00:00
lhauch 4cb2253560 Added Copyright
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1094 6f19259b-4bc3-4df7-8a09-765794883524
2006-07-25 15:27:10 +00:00
jwang36 52cbbdbc16 Fixed EDKT118
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1079 6f19259b-4bc3-4df7-8a09-765794883524
2006-07-24 08:02:37 +00:00
yshi8 56fe62ce9d Removed one useless makefile, and corrected some BSD licenses
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1025 6f19259b-4bc3-4df7-8a09-765794883524
2006-07-17 03:33:40 +00:00
lhauch ad1f8df0c9 Applied BSD license to the source files
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1012 6f19259b-4bc3-4df7-8a09-765794883524
2006-07-14 09:28:02 +00:00
bbahnsen cf17111004 Add new OSS License
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1011 6f19259b-4bc3-4df7-8a09-765794883524
2006-07-14 09:27:09 +00:00
lhauch a71a82e576 Applied BSD license to the source files
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1009 6f19259b-4bc3-4df7-8a09-765794883524
2006-07-14 09:15:04 +00:00
bbahnsen 35e5d5771c Trash it.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1008 6f19259b-4bc3-4df7-8a09-765794883524
2006-07-14 09:13:04 +00:00
lhauch 163312e3c8 Applied BSD license to the source files
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1007 6f19259b-4bc3-4df7-8a09-765794883524
2006-07-14 09:11:51 +00:00
lhauch b84b42fc6c Applied BSD license to the source files
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1006 6f19259b-4bc3-4df7-8a09-765794883524
2006-07-14 09:10:17 +00:00
lhauch 20fa842edb Fixed MSA files so that they have unique names and removed extra copyright and license information in the comment - these are in the header.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@990 6f19259b-4bc3-4df7-8a09-765794883524
2006-07-13 13:15:21 +00:00
jwang36 5e1c3eedcd Added license & copyright declaration
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@967 6f19259b-4bc3-4df7-8a09-765794883524
2006-07-13 08:24:50 +00:00
jwang36 a7e63efe72 Syncronized the file list in each msa and spd files
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@918 6f19259b-4bc3-4df7-8a09-765794883524
2006-07-12 13:47:48 +00:00
jwang36 f09561094a Fixed a typo issue which will cause cleanall failure
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@917 6f19259b-4bc3-4df7-8a09-765794883524
2006-07-12 13:13:54 +00:00
jwang36 219e224747 Polished the build tools' screen output to be in a more coherent form
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@916 6f19259b-4bc3-4df7-8a09-765794883524
2006-07-12 12:39:18 +00:00
wuyizhong 8a2866387d Change to new XML Schema. Using Module_Type to determine SubSystem value
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@683 6f19259b-4bc3-4df7-8a09-765794883524
2006-06-30 17:59:08 +00:00
bbahnsen ecbc84213c Not needed
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@588 6f19259b-4bc3-4df7-8a09-765794883524
2006-06-21 21:09:12 +00:00
bbahnsen cc7f0a9111 Clean up some data type mismatches.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@587 6f19259b-4bc3-4df7-8a09-765794883524
2006-06-21 17:39:11 +00:00
jwang36 3ce2b1a85f Fixed the issues which caused the gcc build on MacOs failed
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@552 6f19259b-4bc3-4df7-8a09-765794883524
2006-06-17 15:42:16 +00:00
bbahnsen 5179dda3f8 Use an absolute path to specify tool executables.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@545 6f19259b-4bc3-4df7-8a09-765794883524
2006-06-16 17:48:34 +00:00
yshi8 ce53a8c3b2 1. Removed the unnecessary #include statements and include files
2. Removed the unnecessary library and include path from MSA files


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@541 6f19259b-4bc3-4df7-8a09-765794883524
2006-06-16 11:42:42 +00:00
yshi8 5a96e3e3fe 1. Removed the unnecessary #include statements and include files
2. Removed the unnecessary library and include path from MSA files


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@540 6f19259b-4bc3-4df7-8a09-765794883524
2006-06-16 11:40:33 +00:00
yshi8 1cc00e4525 1. Removed the unnecessary #include statements and include files
2. Removed the unnecessary library and include path from MSA files


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@539 6f19259b-4bc3-4df7-8a09-765794883524
2006-06-16 11:38:14 +00:00