diff options
Diffstat (limited to 'xmake/modules/utils/binary')
| -rw-r--r-- | xmake/modules/utils/binary/readsyms.lua | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/xmake/modules/utils/binary/readsyms.lua b/xmake/modules/utils/binary/readsyms.lua index e5954e92a..0641d79e9 100644 --- a/xmake/modules/utils/binary/readsyms.lua +++ b/xmake/modules/utils/binary/readsyms.lua @@ -83,19 +83,19 @@ end -- read symbols from object file(s) (auto-detect format: ELF, COFF, Mach-O) -- --- @param binaryfile the object file path or table of object files (required) --- @return the symbols table (all symbols from all files if table is provided) -function main(binaryfile) - assert(binaryfile, "usage: xmake l utils.binary.readsyms <binaryfile> or readsyms(binaryfiles)") +-- @param binaryfiles the object file path or table of object files (required) +-- @return the symbols table (all symbols from all files if table is provided) +function main(binaryfiles) + assert(binaryfiles, "usage: xmake l utils.binary.readsyms <binaryfile> or readsyms(binaryfiles)") local all_symbols = {} - if type(binaryfile) == "string" then + if type(binaryfiles) == "string" then -- single file - return _get_symbols(binaryfile) + return _get_symbols(binaryfiles) else -- multiple files - for _, objectfile in ipairs(binaryfile) do - local symbols = _get_symbols(objectfile) + for _, binaryfile in ipairs(binaryfiles) do + local symbols = _get_symbols(binaryfile) if symbols then for _, sym in ipairs(symbols) do table.insert(all_symbols, sym) |
