mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-03-31 18:20:22 +08:00
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:
parent
a7c8e39686
commit
a5992a4c41
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user