mirror of
https://github.com/acidanthera/OpenCorePkg.git
synced 2025-12-08 19:25:01 +00:00
Multiple: Fix 32-bit linking issues
This commit is contained in:
parent
7390f78869
commit
1d2e449f56
@ -605,7 +605,7 @@ InternalCalculateTargetsIntel64 (
|
||||
|
||||
TargetAddress = ALIGN_VALUE (
|
||||
(Section->Address + LoadAddress),
|
||||
(1ULL << Section->Alignment)
|
||||
(1U << Section->Alignment)
|
||||
);
|
||||
TargetAddress -= Section->Address;
|
||||
}
|
||||
@ -1593,7 +1593,7 @@ InternalPrelinkKext64 (
|
||||
while ((Section = MachoGetNextSection64 (MachoContext, Segment, Section)) != NULL) {
|
||||
Section->Address = ALIGN_VALUE (
|
||||
(Section->Address + LoadAddress),
|
||||
(1ULL << Section->Alignment)
|
||||
(1U << Section->Alignment)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@ -594,7 +594,7 @@ MachoRelocateSymbol64 (
|
||||
|
||||
Value = ALIGN_VALUE (
|
||||
(Section->Address + LinkAddress),
|
||||
(1ULL << Section->Alignment)
|
||||
(1U << Section->Alignment)
|
||||
);
|
||||
Value -= Section->Address;
|
||||
//
|
||||
|
||||
@ -113,7 +113,7 @@ AsciiUint64ToLowerHex (
|
||||
if (Value > 0) {
|
||||
BufferSize -= 2;
|
||||
for (Printed = FALSE, Index = MaxShifts; Index <= MaxShifts; Index -= 4) {
|
||||
Curr = (UINT8) ((Value >> Index) & 0xFU);
|
||||
Curr = (UINT8) (RShiftU64 (Value, Index) & 0xFU);
|
||||
Printed |= Curr > 0;
|
||||
if (Printed) {
|
||||
*Buffer++ = "0123456789abcdef"[Curr];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user