summaryrefslogtreecommitdiff
path: root/core/src/xmake/binutils/elf/rpath.c
diff options
context:
space:
mode:
authorruki <[email protected]>2025-12-21 22:18:53 +0800
committerruki <[email protected]>2025-12-21 22:18:53 +0800
commita2998b38cb3bf7e60eda78e58cad17a6a1e49faa (patch)
tree7608519df3fd7396497bf6f7613973aa0258afe1 /core/src/xmake/binutils/elf/rpath.c
parent4a16fe7f90f6d9d5a06e9d34866c075af07d73b5 (diff)
fix compile errors
Diffstat (limited to 'core/src/xmake/binutils/elf/rpath.c')
-rw-r--r--core/src/xmake/binutils/elf/rpath.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/xmake/binutils/elf/rpath.c b/core/src/xmake/binutils/elf/rpath.c
index 2614c4694..b238ad42f 100644
--- a/core/src/xmake/binutils/elf/rpath.c
+++ b/core/src/xmake/binutils/elf/rpath.c
@@ -114,7 +114,7 @@ static tb_bool_t xm_binutils_elf_rpath_clean_impl(tb_stream_ref_t istream, tb_hi
// allocate buffer for all dynamic entries
tb_size_t dyn_size = (tb_size_t)ctx->dynamic_size;
- buffer = tb_malloc(dyn_size);
+ buffer = (tb_byte_t*)tb_malloc(dyn_size);
if (!buffer) break;
if (!tb_stream_seek(istream, base_offset + ctx->dynamic_offset)) break;