diff options
| -rw-r--r-- | core/src/xmake/binutils/macho/prefix.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/xmake/binutils/macho/prefix.h b/core/src/xmake/binutils/macho/prefix.h index 0b0ea00c3..2179ac344 100644 --- a/core/src/xmake/binutils/macho/prefix.h +++ b/core/src/xmake/binutils/macho/prefix.h @@ -334,8 +334,8 @@ static __tb_inline__ tb_uint32_t xm_binutils_macho_parse_version(tb_char_t const static __tb_inline__ tb_bool_t xm_binutils_macho_read_string(tb_stream_ref_t istream, tb_uint32_t strtab_offset, tb_uint32_t offset, tb_char_t *name, tb_size_t name_size) { tb_assert_and_check_return_val(istream && name && name_size > 0, tb_false); - tb_hize_t saved_pos = tb_stream_offset(istream); // nlist.strx is offset from string table start (including 4-byte size field) + tb_hize_t saved_pos = tb_stream_offset(istream); if (!tb_stream_seek(istream, strtab_offset + offset)) { return tb_false; } |
