diff options
| author | ruki <[email protected]> | 2025-12-07 00:16:28 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-12-07 17:15:59 +0800 |
| commit | 19451b8b7f31a3885011098792d5f9f98eba3401 (patch) | |
| tree | 29cc95768a996e3577a9fb186d39b27d277101f7 | |
| parent | 91b4d27dfaef34109ad8d0425be1ba3c510562eb (diff) | |
fix symbols name
| -rw-r--r-- | xmake/modules/private/utils/bin2obj.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xmake/modules/private/utils/bin2obj.lua b/xmake/modules/private/utils/bin2obj.lua index c51f6225f..7ee7ea3a1 100644 --- a/xmake/modules/private/utils/bin2obj.lua +++ b/xmake/modules/private/utils/bin2obj.lua @@ -36,10 +36,10 @@ function _do_bin2obj_coff(binarypath, outputpath, opt) -- get architecture local arch = opt.arch - -- get basename from binary path - local basename = path.basename(binarypath) + -- get filename from binary path (with extension, dots replaced with underscores) + local filename = path.filename(binarypath) -- replace dots with underscores for symbol name (e.g., data.bin -> data_bin) - basename = basename:gsub("%.", "_") + local basename = filename:gsub("%.", "_") -- trace print("converting binary file %s to COFF object file %s ..", binarypath, outputpath) |
