sparc: fix support for elf in boot mode
Change-Id: I901a4e494dd5273a0aa433f08b94363b486c58e1 Reviewed-on: https://review.haiku-os.org/c/1366 Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
@@ -36,9 +36,15 @@ is_in_image(struct elf_image_info *image, addr_t address)
|
|||||||
#endif // !_BOOT_MODE
|
#endif // !_BOOT_MODE
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef _BOOT_MODE
|
||||||
|
status_t
|
||||||
|
boot_arch_elf_relocate_rel(struct preloaded_elf64_image *image, Elf64_Rel *rel,
|
||||||
|
int rel_len)
|
||||||
|
#else
|
||||||
int
|
int
|
||||||
arch_elf_relocate_rel(struct elf_image_info *image,
|
arch_elf_relocate_rel(struct elf_image_info *image,
|
||||||
struct elf_image_info *resolve_image, Elf64_Rel *rel, int rel_len)
|
struct elf_image_info *resolve_image, Elf64_Rel *rel, int rel_len)
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
// there are no rel entries in M68K elf
|
// there are no rel entries in M68K elf
|
||||||
return B_NO_ERROR;
|
return B_NO_ERROR;
|
||||||
@@ -91,9 +97,15 @@ write_8_check(addr_t P, Elf32_Word value)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef _BOOT_MODE
|
||||||
|
status_t
|
||||||
|
boot_arch_elf_relocate_rela(struct preloaded_elf64_image *image,
|
||||||
|
Elf64_Rela *rel, int rel_len)
|
||||||
|
#else
|
||||||
int
|
int
|
||||||
arch_elf_relocate_rela(struct elf_image_info *image,
|
arch_elf_relocate_rela(struct elf_image_info *image,
|
||||||
struct elf_image_info *resolve_image, Elf64_Rela *rel, int rel_len)
|
struct elf_image_info *resolve_image, Elf64_Rela *rel, int rel_len)
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
return B_OK;
|
return B_OK;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user