From a5992a4c41784aafe6741b78a71288550bbbdc21 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Mon, 18 Jun 2018 16:00:48 -0700 Subject: [PATCH] outmacho: don't use raa_read() for pointer values If we write pointers, we have to read pointers. This unbreaks non-64-bit bigendian systems. 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 9f937c90..e540b7d8 100644 --- a/output/outmacho.c +++ b/output/outmacho.c @@ -363,7 +363,7 @@ static struct section *get_section_by_index(int32_t index) if (index < 0 || index >= SEG_ABS || (index & 1)) return NULL; - return (struct section *)raa_read(section_by_index, index >> 1); + return raa_read_ptr(section_by_index, index >> 1); } struct dir_list {