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>
This commit is contained in:
H. Peter Anvin 2018-06-18 16:00:48 -07:00
parent a7c8e39686
commit a5992a4c41

View file

@ -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 {