mirror of
https://github.com/linux-sunxi/u-boot-sunxi.git
synced 2024-02-12 11:16:03 +08:00
x86: Remove unused _relocate arguments
EFI image handle and system table are not used in _relocate(). Signed-off-by: Ivan Gorinov <ivan.gorinov@intel.com>
This commit is contained in:
@ -18,9 +18,6 @@ _start:
|
|||||||
pushq %rcx
|
pushq %rcx
|
||||||
pushq %rdx
|
pushq %rdx
|
||||||
|
|
||||||
mov %rcx, %r8
|
|
||||||
mov %rdx, %r9
|
|
||||||
|
|
||||||
lea image_base(%rip), %rcx
|
lea image_base(%rip), %rcx
|
||||||
lea _DYNAMIC(%rip), %rdx
|
lea _DYNAMIC(%rip), %rdx
|
||||||
|
|
||||||
|
@ -12,8 +12,7 @@
|
|||||||
#include <elf.h>
|
#include <elf.h>
|
||||||
#include <asm/elf.h>
|
#include <asm/elf.h>
|
||||||
|
|
||||||
efi_status_t _relocate(long ldbase, Elf32_Dyn *dyn, efi_handle_t image,
|
efi_status_t EFIAPI _relocate(long ldbase, Elf32_Dyn *dyn)
|
||||||
struct efi_system_table *systab)
|
|
||||||
{
|
{
|
||||||
long relsz = 0, relent = 0;
|
long relsz = 0, relent = 0;
|
||||||
Elf32_Rel *rel = 0;
|
Elf32_Rel *rel = 0;
|
||||||
|
@ -14,8 +14,7 @@
|
|||||||
#include <elf.h>
|
#include <elf.h>
|
||||||
#include <asm/elf.h>
|
#include <asm/elf.h>
|
||||||
|
|
||||||
efi_status_t _relocate(long ldbase, Elf64_Dyn *dyn, efi_handle_t image,
|
efi_status_t EFIAPI _relocate(long ldbase, Elf64_Dyn *dyn)
|
||||||
struct efi_system_table *systab)
|
|
||||||
{
|
{
|
||||||
long relsz = 0, relent = 0;
|
long relsz = 0, relent = 0;
|
||||||
Elf64_Rel *rel = 0;
|
Elf64_Rel *rel = 0;
|
||||||
|
Reference in New Issue
Block a user