mirror of
https://github.com/acidanthera/audk.git
synced 2025-09-25 18:48:42 +02:00
ImageTool: Disable unused ARM reloc type
This commit is contained in:
parent
08672ed0d4
commit
fd940ff6df
@ -150,10 +150,12 @@ ToolImageGetRelocSize (
|
|||||||
return sizeof (UINT64);
|
return sizeof (UINT64);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 0
|
||||||
case EFI_IMAGE_REL_BASED_ARM_MOV32T:
|
case EFI_IMAGE_REL_BASED_ARM_MOV32T:
|
||||||
{
|
{
|
||||||
return sizeof (UINT32);
|
return sizeof (UINT32);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
default:
|
default:
|
||||||
{
|
{
|
||||||
@ -173,8 +175,11 @@ CheckToolImageReloc (
|
|||||||
uint32_t RelocOffset;
|
uint32_t RelocOffset;
|
||||||
uint32_t RemainingSize;
|
uint32_t RemainingSize;
|
||||||
const image_tool_segment_t *Segment;
|
const image_tool_segment_t *Segment;
|
||||||
|
|
||||||
|
#if 0
|
||||||
uint16_t MovHigh;
|
uint16_t MovHigh;
|
||||||
uint16_t MovLow;
|
uint16_t MovLow;
|
||||||
|
#endif
|
||||||
|
|
||||||
RelocOffset = Reloc->Target;
|
RelocOffset = Reloc->Target;
|
||||||
Segment = ImageGetSegmentByAddress (
|
Segment = ImageGetSegmentByAddress (
|
||||||
@ -192,6 +197,7 @@ CheckToolImageReloc (
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 0
|
||||||
if (Reloc->Type == EFI_IMAGE_REL_BASED_ARM_MOV32T) {
|
if (Reloc->Type == EFI_IMAGE_REL_BASED_ARM_MOV32T) {
|
||||||
if (!IS_ALIGNED (Reloc->Target, ALIGNOF (UINT16))) {
|
if (!IS_ALIGNED (Reloc->Target, ALIGNOF (UINT16))) {
|
||||||
DEBUG_RAISE ();
|
DEBUG_RAISE ();
|
||||||
@ -206,6 +212,7 @@ CheckToolImageReloc (
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
// FIXME: Update drivers?
|
// FIXME: Update drivers?
|
||||||
if ((Image->HeaderInfo.Subsystem == EFI_IMAGE_SUBSYSTEM_EFI_RUNTIME_DRIVER ||
|
if ((Image->HeaderInfo.Subsystem == EFI_IMAGE_SUBSYSTEM_EFI_RUNTIME_DRIVER ||
|
||||||
@ -461,6 +468,7 @@ ToolImageRelocate (
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 0
|
||||||
case EFI_IMAGE_REL_BASED_ARM_MOV32T:
|
case EFI_IMAGE_REL_BASED_ARM_MOV32T:
|
||||||
{
|
{
|
||||||
assert (RemainingSize >= sizeof (UINT32));
|
assert (RemainingSize >= sizeof (UINT32));
|
||||||
@ -469,6 +477,7 @@ ToolImageRelocate (
|
|||||||
PeCoffThumbMovwMovtImmediateFixup (&Segment->Data[RelocOffset], Adjust);
|
PeCoffThumbMovwMovtImmediateFixup (&Segment->Data[RelocOffset], Adjust);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
default:
|
default:
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user