diff options
author | H. Peter Anvin <hpa@linux.intel.com> | 2018-06-18 16:00:48 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2018-06-18 16:00:48 -0700 |
commit | a5992a4c41784aafe6741b78a71288550bbbdc21 (patch) | |
tree | 792d03b2d5e304356f372afe4a6e2b46f6c591d3 | |
parent | a7c8e39686c5613ff20ad2c11e1866f01b6a8863 (diff) | |
download | nasm-a5992a4c41784aafe6741b78a71288550bbbdc21.tar.gz |
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 <hpa@linux.intel.com>
-rw-r--r-- | output/outmacho.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 { |