From b41952986b3cd7558cb128790bb94e1f60fd088a Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Tue, 14 Jun 2016 18:01:21 -0700 Subject: outmacho: Fix relative relocations for 32-bit Mach-O (fix typo) This unbreaks checkin 84f6860ed53492976c9d79e9a8a0bdc60da78bc6, which was broken due to a transcription error of mine. Zenith432 was faultless in this case. This fixes bug report 3392355. Reported-by: Zenith432 Signed-off-by: H. Peter Anvin --- output/outmacho.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/output/outmacho.c b/output/outmacho.c index 6887d8f5..40df300e 100644 --- a/output/outmacho.c +++ b/output/outmacho.c @@ -465,7 +465,7 @@ static int64_t add_reloc(struct section *sect, int32_t section, r->snum = raa_read(extsyms, section); if (reltype == RL_BRANCH) r->type = X86_64_RELOC_BRANCH; - else if (reltype == GENERIC_RELOC_VANILLA) + else if (r->type == GENERIC_RELOC_VANILLA) adjust = -sect->size; } else { /* local */ -- cgit v1.2.1