Mikhail Krichanov
b58fc72d8a
ImageTool: Dropped MOVW/T relocs.
2023-04-12 16:46:40 +03:00
Mikhail Krichanov
19978560ba
BaseTools: Cleaned up ARM relocs calculation in ImageTool and removed several relocation types' definitions as according to ARM ABI (aaelf32.pdf) 177-255 codes are reserved for future allocation.
2023-04-12 16:46:40 +03:00
Savva Mitrofanov
687086ce0e
ImageTool: Drop duplicated BaseOverflowLib symbols
2023-04-12 18:02:13 +06:00
Marvin Häuser
79ee7f5475
ImageTool: Rework PE section emission
2023-04-11 09:27:39 +02:00
Marvin Häuser
c497d51928
ImageTool: Only translate ELF relocs targeting translated sections
2023-04-11 09:27:39 +02:00
Marvin Häuser
016a079008
ImageTool: Support R_ARM_NONE relocation type
2023-04-11 09:27:39 +02:00
Marvin Häuser
6623dd8671
ImageTool: Error when encountering unknown ELF SHF_ALLOC sections
2023-04-11 09:27:39 +02:00
Marvin Häuser
08778e2a3d
ImageTool: Abstract executable generation
2023-04-11 09:27:35 +02:00
Marvin Häuser
75fcd420f6
ImageTool: Distinguish between non-ELF/PE and incompatible ELF/PE
2023-04-10 22:40:52 +02:00
Marvin Häuser
1fc65bdb8d
ImageTool: Correctly emit VirtualSize as ImageSize for non-XIP
2023-04-10 22:39:42 +02:00
Marvin Häuser
d27a576b86
ImageTool: Explicitly convert IR to XIP for PE emission
2023-04-10 22:39:42 +02:00
Marvin Häuser
0bfa467344
ImageTool: Use realloc() for IR segment enlarging
2023-04-10 22:39:42 +02:00
Marvin Häuser
2f91fddf99
Drop premature UE support
2023-04-10 22:21:15 +02:00
Mikhail Krichanov
d58d5c1bc3
ImageTool: Extended debug printings.
2023-04-10 10:31:53 +02:00
Mikhail Krichanov
7abc3faeec
ImageTool: Made compilation of EFI_IMAGE_MACHINE selection conditional.
2023-04-10 10:31:53 +02:00
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