>From a02638d9459d53f909593d4c6c9e17d4f1548c64 Mon Sep 17 00:00:00 2001 From: Roland Kaufmann Date: Thu, 27 Dec 2018 16:14:38 +0100 Subject: [PATCH 5/6] Make relocation of relative pointers a no-op --- src/unexmacosx.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/unexmacosx.c b/src/unexmacosx.c index 653ecc0..286749c 100644 --- a/src/unexmacosx.c +++ b/src/unexmacosx.c @@ -1024,6 +1024,11 @@ unrelocate (const char *name, off_t reloff, int nrel, vm_address_t base) unreloc_count++; } break; + case GENERIC_RELOC_LOCAL_SECTDIFF: + /* nothing to do for relative pointer, as section order */ + /* is fixed as we dump the image; we won't need to move */ + /* them around later. */ + break; default: unexec_error ("unrelocate: %s:%d cannot handle type = %d", name, i, reloc_info.r_type); -- 2.25.2