diff --git a/src/kernel/apps/rld/arch/ppc/rldreloc.inc b/src/kernel/apps/rld/arch/ppc/rldreloc.inc index 1e92de5636..dd7ee34e4f 100644 --- a/src/kernel/apps/rld/arch/ppc/rldreloc.inc +++ b/src/kernel/apps/rld/arch/ppc/rldreloc.inc @@ -14,15 +14,10 @@ relocate_rel(image_t *image, struct Elf32_Rel *rel, int rel_len) static status_t -relocate_image(image_t *image) +arch_relocate_image(image_t *image) { status_t status = B_NO_ERROR; - if (image->flags & RFLAG_RELOCATED) - return B_OK; - - image->flags |= RFLAG_RELOCATED; - // deal with the rels first if (image->rel) { status = relocate_rel(image, image->rel, image->rel_len); diff --git a/src/kernel/apps/rld/arch/x86/rldreloc.inc b/src/kernel/apps/rld/arch/x86/rldreloc.inc index 6c51fb2af4..1aec2eb56f 100644 --- a/src/kernel/apps/rld/arch/x86/rldreloc.inc +++ b/src/kernel/apps/rld/arch/x86/rldreloc.inc @@ -95,15 +95,10 @@ relocate_rel(image_t *image, struct Elf32_Rel *rel, int rel_len) */ static status_t -relocate_image(image_t *image) +arch_relocate_image(image_t *image) { status_t status; - if (image->flags & RFLAG_RELOCATED) - return B_OK; - - image->flags |= RFLAG_RELOCATED; - // deal with the rels first if (image->rel) { status = relocate_rel(image, image->rel, image->rel_len);