diff options
| author | ruki <[email protected]> | 2025-12-09 00:32:02 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-12-09 00:32:02 +0800 |
| commit | 7b24dfe374f14c8682d8ea2b66d8892b104c7a12 (patch) | |
| tree | a19704e696f375e7b95f3af1c62c78304a693ba3 /xmake/modules/utils/binary/readsyms.lua | |
| parent | ba293bc4b8840da34220e1f54313d531d18dde8e (diff) | |
fix dump
Diffstat (limited to 'xmake/modules/utils/binary/readsyms.lua')
| -rw-r--r-- | xmake/modules/utils/binary/readsyms.lua | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/xmake/modules/utils/binary/readsyms.lua b/xmake/modules/utils/binary/readsyms.lua index ace1c8be3..212c99401 100644 --- a/xmake/modules/utils/binary/readsyms.lua +++ b/xmake/modules/utils/binary/readsyms.lua @@ -27,20 +27,11 @@ import("core.base.binutils") -- @return the symbols table function _get_symbols(binaryfile) assert(binaryfile, "usage: xmake l utils.binary.readsyms <binaryfile>") - + binaryfile = path.absolute(binaryfile) assert(os.isfile(binaryfile), "%s not found!", binaryfile) - - if binutils.readsyms then - local ok, symbols = binutils.readsyms(binaryfile) - if ok then - return symbols - else - raise("readsyms: %s", symbols or "unknown error") - end - else - raise("readsyms: binutils.readsyms not available (C implementation not compiled)") - end + + return binutils.readsyms(binaryfile) end -- dump symbols to console |
