/** @file
Fixes Intel Itanium(TM) specific relocation types.
Copyright (c) 2006 - 2008, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
**/
#include "BasePeCoffLibInternals.h"
#define IMM64_IMM7B_VAL_POS_X 0
#define IMM64_IMM41C_INST_WORD_POS_X 0
/**
Performs an Itanium-based specific relocation fixup.
@param Reloc The pointer to the relocation record.
@param Fixup The pointer to the address to fix up.
@param FixupData The pointer to a buffer to log the fixups.
@param Adjust The offset to adjust the fixup.
@retval RETURN_SUCCESS Succeed to fix the relocation entry.
@retval RETURN_UNSUPPOTED Unrecoganized relocation entry.
**/
)
{
switch ((*Reloc) >> 12) {
//
// Align it to bundle address before fixing up the
// 64-bit immediate value of the movl instruction.
//
//
// Extract the lower 32 bits of IMM64 from bundle
//
);
);
);
);
);
//
// Update 64-bit address
//
//
// Insert IMM64 into bundle
//
);
);
);
);
);
);
);
);
}
break;
default:
return RETURN_UNSUPPORTED;
}
return RETURN_SUCCESS;
}
/**
loading and relocating of the image type. It's up to the caller to support
the entry point.
@param Machine Machine type from the PE Header.
@return FALSE unrecoganized machine type of image.
**/
)
{
return TRUE;
}
return FALSE;
}
/**
ImageRead function that operates on a memory buffer whos base is passed into
FileHandle.
@param Reloc Ponter to baes of the input stream
@param Fixup Offset to the start of the buffer
@param FixupData The number of bytes to copy into the buffer
@param Adjust Location to place results of read
@retval RETURN_SUCCESS Data is read from FileOffset from the Handle into
the buffer.
@retval RETURN_UNSUPPORTED Un-recoganized relocation entry
type.
**/
)
{
switch ((*Reloc) >> 12) {
}
break;
//
// Align it to bundle address before fixing up the
// 64-bit immediate value of the movl instruction.
//
//
//
// Extract the lower 32 bits of IMM64 from bundle
//
);
);
);
);
);
//
// Update 64-bit address
//
//
// Insert IMM64 into bundle
//
);
);
);
);
);
);
);
);
}
break;
default:
return RETURN_UNSUPPORTED;
}
return RETURN_SUCCESS;
}