24 Commits

Author SHA1 Message Date
Marvin Häuser
373bb081ee ImageTool: Fix ARM image generation 2023-04-10 10:31:53 +02:00
Marvin Häuser
b1851ef38d BaseTools/ImageTool: Fix PeScan error handling 2023-04-02 00:04:46 +02:00
Marvin Häuser
d5eecc2e2d BaseTools/ImageTool: Use AllocateAlignedCodePages() for images 2023-04-02 00:04:28 +02:00
Marvin Häuser
240e920841 BaseTools/ImageTool: Consume CommonMemoryAllocationLib 2023-04-01 23:59:10 +02:00
Marvin Häuser
0cd5908c7f BaseTools/ImageTool: Rename PreferredAddress to BaseAddress 2023-03-30 00:18:28 +02:00
Marvin Häuser
ea97361c29 ImageTool: Fix SymbolsPathLen inconsistencies 2023-03-28 23:52:27 +02:00
Marvin Häuser
d24e8eb64a BaseTools/CommonLib: Consume MdePkg and MdeModulePkg
BaseTools has been duplicating and adapting code that is defined in
MdePkg and MdeModulePkg. This leads to desync issues where the same
symbols may be backed by different functions with slightly different
semantics and also fixes that apply only to BaseTools or only to MdePkg
and MdeModulePkg.

To address these issues, update BaseTools/Source/C to utilize the code
from MdePkg and MdeModulePkg.

Signed-off-by: Marvin Häuser <mhaeuser@posteo.de>
2023-03-17 15:16:23 +03:00
Mikhail Krichanov
aba1c68ac1 ImageTool: Fixed compilation for AARCH64. 2023-03-16 15:33:03 +03:00
Mikhail Krichanov
75fcf75121 BaseTools: Added draft of ARM, AARCH64 support. 2023-03-16 15:33:03 +03:00
Mikhail Krichanov
a0f5b70883 ImageTool: Made SizeOfImage equal maximum virtual address. 2023-03-16 12:20:13 +03:00
Marvin Häuser
daca49e23f ImageTool/PeScan: Drop redundant size clamping 2023-03-16 12:20:13 +03:00
Mikhail Krichanov
8978439c82 ImageTool: Returned ImageBuffer for section, reloc parsing. 2023-03-16 12:20:13 +03:00
Mikhail Krichanov
1bb6e60e7d ImageTool: Removed corruption tolerant DebugInfo search assuming mtoc is fixed. 2023-03-16 12:20:13 +03:00
Mikhail Krichanov
526c4b13ab ImageTool: Refactored out Pointer. 2023-03-16 12:20:13 +03:00
Mikhail Krichanov
2bb2e22db8 BaseTools: Reduced minimal alignment to 32 bytes. 2023-03-16 12:20:13 +03:00
Savva Mitrofanov
b78e1e0e5a
BaseTools: Fix MSVC build due to missing Crc32 symbols
Signed-off-by: Savva Mitrofanov <savvamtr@gmail.com>
2023-02-22 17:39:14 +06:00
Marvin Häuser
742a1e3326 BaseTools: Support read-only data for ASLC 2023-02-12 14:51:26 +01:00
Mikhail Krichanov
76d8185b5c ImageTool: Fixed "Blue Screen" problem for CLANGDWARF. 2023-02-10 14:00:28 +03:00
Mikhail Krichanov
0212a1af87 ImageTool: Refactored relocs calculation. 2023-02-10 14:00:28 +03:00
Mikhail Krichanov
4a7bcc4251 ImageTool: Fixed GOTPCREL relocations for GCC5. 2023-02-10 14:00:28 +03:00
Mikhail Krichanov
8e421ef0e3 BaseTools: Fixed sh_addralign field in ELF files, removed useless checks in ImageTool. 2023-02-10 14:00:28 +03:00
Mikhail Krichanov
8e6e4d1be4 ImageTool: Removed recalculation of virtual addresses, asssuming they are the same both in ELF and PE files. 2023-02-10 14:00:28 +03:00
Mikhail Krichanov
464cf15edb BaseTools: United GCC and CLANG linker scripts, set default 4K alignment for all toolchains. 2023-02-10 14:00:28 +03:00
Mikhail Krichanov
cf92e9f7d7 BaseTools: Replaced GenFw with ImageTool and MicroTool. 2022-12-28 17:21:20 +03:00