diff options
| author | ruki <[email protected]> | 2025-12-12 00:43:59 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-12-12 09:00:45 +0800 |
| commit | bf35be31ee869cf75a9a32e52069867326e23cda (patch) | |
| tree | b09958d96562f47aafd816b20e489e7c11a7b75b /core/src/xmake/binutils/coff | |
| parent | 890c032d88364e69baa41050079e9b69b58fa735 (diff) | |
fix compile errors
Diffstat (limited to 'core/src/xmake/binutils/coff')
| -rw-r--r-- | core/src/xmake/binutils/coff/prefix.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/src/xmake/binutils/coff/prefix.h b/core/src/xmake/binutils/coff/prefix.h index 60f6ded96..6b009b056 100644 --- a/core/src/xmake/binutils/coff/prefix.h +++ b/core/src/xmake/binutils/coff/prefix.h @@ -209,7 +209,7 @@ static __tb_inline__ tb_void_t xm_binutils_coff_write_symbol_name(tb_stream_ref_ * @param offset the string offset (from start of string table content, after size field) * @return the string (static buffer, valid until next call) */ -static __tb_inline__ tb_bool_t xm_binutils_coff_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) { +static __tb_inline__ tb_bool_t xm_binutils_coff_read_string(tb_stream_ref_t istream, tb_hize_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); // In COFF format, the offset in symbol table is from the start of string table @@ -271,7 +271,7 @@ static __tb_inline__ tb_bool_t xm_binutils_coff_read_string(tb_stream_ref_t istr * @param name_size the size of the buffer * @return tb_true on success, tb_false on failure */ -static __tb_inline__ tb_bool_t xm_binutils_coff_get_symbol_name(tb_stream_ref_t istream, xm_coff_symbol_t const *sym, tb_uint32_t strtab_offset, tb_char_t *name, tb_size_t name_size) { +static __tb_inline__ tb_bool_t xm_binutils_coff_get_symbol_name(tb_stream_ref_t istream, xm_coff_symbol_t const *sym, tb_hize_t strtab_offset, tb_char_t *name, tb_size_t name_size) { tb_assert_and_check_return_val(istream && sym && name && name_size > 0, tb_false); // check if it's a long name (first 4 bytes are zeros) |
