Mikhail Krichanov
6257e37e09
MdePkg: Fixed compilation.
2023-07-19 13:45:31 +03:00
Mikhail Krichanov
ea43155693
Build: Switched OpenCore to UE branch.
2023-07-19 13:45:31 +03:00
Marvin Häuser
6bae938f40
ImageTool: Prefer AllocateCopyPool()
2023-07-19 13:45:31 +03:00
Marvin Häuser
329772c824
ImageTool/DynamicBuffer: Optimize branching behaviour
2023-07-19 13:45:31 +03:00
Marvin Häuser
db7b4da183
ImageTool/PeEmit: Force-terminate section names
2023-07-19 13:45:31 +03:00
Marvin Häuser
6a22eca730
ImageTool: Fix memory leaks
2023-07-19 13:45:31 +03:00
Marvin Häuser
ca23202d18
ImageTool: Drop redundant FIXMEs
2023-07-19 13:45:31 +03:00
Marvin Häuser
5644ad0827
ImageTool: Drop FIXME to ensure canonical semantics
2023-07-19 13:45:31 +03:00
Marvin Häuser
58beecb7b0
MdePkg/UefiImageLib: Rename "PreferredAddress" to "BaseAddress"
2023-07-19 13:45:31 +03:00
Marvin Häuser
5055709a2c
MdePkg/UefiImageLib: Deprecate GetImageSizeInplace()
2023-07-19 13:45:31 +03:00
Marvin Häuser
fee5405eaf
BaseTools/CommonLib: Replace aligned_alloc with posix_memalign
2023-07-19 13:45:31 +03:00
Marvin Häuser
952fc318ce
ImageTool: Support disabling ELF as source format
2023-07-19 13:45:31 +03:00
Marvin Häuser
fd940ff6df
ImageTool: Disable unused ARM reloc type
2023-07-19 13:45:31 +03:00
Marvin
08672ed0d4
ImageTool: Fix assertions
2023-07-19 13:45:31 +03:00
Marvin
c5e36c7b7e
ImageTool: Remove unused code
2023-07-19 13:45:31 +03:00
Marvin
baded9d1f9
ImageTool: Emit granular status for UefiImage IR construction
2023-07-19 13:45:31 +03:00
Marvin
e234e4ea63
ImageTool: Exclusively use OC/User allocators
2023-07-19 13:45:31 +03:00
Marvin Häuser
5fb01f8f29
ImageTool: Enforce reloc disjointness
2023-07-19 13:45:31 +03:00
Marvin Häuser
b25125e0e1
ImageTool: Handle image address overflows
2023-07-19 13:45:31 +03:00
Marvin Häuser
78703654d8
ImageTool: Remove argument asserts
2023-07-19 13:45:31 +03:00
Marvin Häuser
f374c858df
ImageTool: Check HeaderInfo
2023-07-19 13:45:31 +03:00
Marvin Häuser
31c0046cbe
ImageTool: Fix memory leaks
2023-07-19 13:45:31 +03:00
Marvin Häuser
d5eb795bc9
ImageTool: Fix compiler and fuzzer warnings
2023-07-19 13:45:31 +03:00
Marvin Häuser
dd8a4d1f82
ImageTool: Replace raise() with DEBUG_RAISE()
2023-07-19 13:45:31 +03:00
Marvin Häuser
4166d3ffd3
ImageTool: Support XIP configuration
2023-07-19 13:45:31 +03:00
Marvin Häuser
8957da50bb
ImageTool: Update relocation logic
2023-07-19 13:45:31 +03:00
Marvin Häuser
8db3b2a6a2
ImageTool: Ensure PE section names are terminated
2023-07-19 13:45:31 +03:00
Marvin Häuser
e239aed80d
ImageTool: Update RelocateImage internal prototype
2023-07-19 13:45:31 +03:00
Mikhail Krichanov
c6265d1374
MdePkg/UefiImageLib: Introduce DebugAddress
...
Signed-off-by: Marvin Häuser <mhaeuser@posteo.de>
2023-07-19 13:45:31 +03:00
Marvin Häuser
d1d136dfcd
MdePkg/BasePeCoffLib2: Slight adjustments
2023-07-19 13:45:31 +03:00
Marvin Häuser
24c3bf2c4b
ImageTool: Rework PeEmit with dynamically-growing buffers
2023-07-19 13:45:31 +03:00
Mikhail Krichanov
f84c36f7ea
MdePkg/UefiImageLib: Support multi-format and multi-source architecture
...
Signed-off-by: Marvin Häuser <mhaeuser@posteo.de>
2023-07-19 13:45:31 +03:00
Marvin Häuser
832bf1df71
MdeModulePkg/DxeCore: Re-use ImageIsFromFv for memory protection
2023-07-19 13:45:31 +03:00
Marvin Häuser
3a50f54cab
MdeModulePkg/DxeCore: Check FileAuthenticationStatus for caller buffers
2023-07-19 13:45:31 +03:00
Marvin Häuser
4a541b7183
Remove unused dependencies on UefiImageLib
2023-07-19 13:45:31 +03:00
Marvin Häuser
c36bf0ae08
MdeModulePkg/UefiBootManagerLib: Do not parse the UEFI image
2023-07-19 13:45:31 +03:00
Marvin Häuser
1e673c4935
SecurityPkg/Tcd2Dxe: Fix UefiImage initialization
2023-07-19 13:45:31 +03:00
Mikhail Krichanov
8aac54287a
Build: Upgraded OpenCorePkg.
2023-07-07 13:44:21 +03:00
Mikhail Krichanov
fbcfdbc069
CI: Fixed nolto tests.
2023-07-07 13:06:11 +03:00
Savva Mitrofanov
517e906518
CI: Remove Dependabot configuration
2023-07-07 10:51:30 +03:00
Pedro Falcato
609600b7ee
Ext4Pkg: Skip zero-sized extents
...
Zero-sized extents should not be cached nor considered valid, as they
have no meaning. As such, reject them outright when caching extents.
This makes it so callers do not need to check for ee_len = 0 before
using the result, which, if not done, can result in possible infinite
loops.
Cc: Marvin Häuser <mhaeuser@posteo.de>
Fixes: d9ceedca6c8f ("Ext4Pkg: Add Ext4Dxe driver.")
Reported-by: Savva Mitrofanov <savvamtr@gmail.com>
Signed-off-by: Pedro Falcato <pedro.falcato@gmail.com>
2023-07-07 10:51:30 +03:00
Savva Mitrofanov
b84aa16df8
Ext4Pkg: Fix GdtCsum calculation for block group descriptor
...
Doesn't take into account the empty checksum field and passes the correct initial value of 0xFFFF into the CRC16-ANSI function
Signed-off-by: Savva Mitrofanov <savvamtr@gmail.com>
2023-07-07 10:51:30 +03:00
Savva Mitrofanov
71cbd3cb57
MdePkg/BaseLib: Correct CRC-16-ANSI implementation
...
The ANSI implementation assumes that initial value should be 0xFFFF and
the result shouldn't be inverted
Fixes: 92288f4 ("MdePkg/BaseLib: Add CRC16-ANSI and CRC32c implementations")
Signed-off-by: Savva Mitrofanov <savvamtr@gmail.com>
2023-07-07 10:51:30 +03:00
Mikhail Krichanov
43134dc60f
CI: Added tests for NOLTO builds.
2023-07-07 10:51:30 +03:00
Mikhail Krichanov
0303f6c239
BaseTools/Conf: Added EDK2_GCC_NOLTO build option.
2023-07-07 10:51:30 +03:00
Mikhail Krichanov
2f0285fa75
Build: Replaced GCC5 toolchain with GCC.
2023-07-07 10:51:02 +03:00
Mikhail Krichanov
de7ca36a15
Fixed compilation of all packages tracked by CI after rebasing upon edk2-stable202305.
2023-07-07 09:47:25 +03:00
Mikhail Krichanov
810bae60d1
Revert "MdeModulePkg: Enable forward edge CFI in mem attributes table"
...
This reverts commit e4ef609319236a018c60b84f68d9d923c4ba383e.
2023-07-07 09:46:08 +03:00
Mikhail Krichanov
a3d73d44ee
MdeModulePkg/Core/Dxe: Integrate CPU Architectural producer
...
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=3223
In the current design, memory protection is not available till CpuDxe
is loaded. To resolve this, introduce CpuArchLib to move the
CPU Architectural initialization to DxeCore.
Cc: Eric Dong <eric.dong@intel.com>
Cc: Ray Ni <ray.ni@intel.com>
Cc: Laszlo Ersek <lersek@redhat.com>
Cc: Rahul Kumar <rahul1.kumar@intel.com>
Cc: Vitaly Cheptsov <vit9696@protonmail.com>
Signed-off-by: Marvin Häuser <mhaeuser@posteo.de>
2023-07-07 09:46:08 +03:00
Savva Mitrofanov
edf7f64f14
Build: Upgrade OpenCorePkg
...
Signed-off-by: Savva Mitrofanov <savvamtr@gmail.com>
2023-07-07 09:46:08 +03:00