Binary utility modules.
Get dependent libraries.
::: tip API
local deps = deplibs(binaryfile: <string>, opt: <table>)
:::
| Parameter | Description |
|---|---|
| binaryfile | Required. Input binary file path |
| opt | Optional. Options: - plat: Platform - arch: Architecture - recursive: Recursively get all sub-dependencies (default: false) - resolve_path: Try to resolve the file full path (default: false) - resolve_hint_paths: Resolve paths from hints - resolve_search_paths: Search library paths (e.g. LD_LIBRARY_PATH) - check_cycle: Check for circular dependencies |
| Return Value | Description |
|---|---|
<table> |
Dependent libraries list |
Read symbols from object file.
::: tip API
local syms = readsyms(binaryfile: <string>)
:::
| Parameter | Description |
|---|---|
| binaryfile | Required. Input object file path |
| Return Value | Description |
|---|---|
<table> |
Symbols list |
Extract static library to directory.
::: tip API
extractlib(libraryfile: <string>, outputdir: <string>, opt: <table>)
:::
| Parameter | Description |
|---|---|
| libraryfile | Required. Input static library file path |
| outputdir | Required. Output directory path |
| opt | Optional. Options |
Get rpath list.
::: tip API
local rpaths = rpath.list(binaryfile: <string>, opt: <table>)
:::
| Parameter | Description |
|---|---|
| binaryfile | Required. Input binary file path |
| opt | Optional. Options |
| Return Value | Description |
|---|---|
<table> |
Rpath list |
Insert rpath.
::: tip API
rpath.insert(binaryfile: <string>, rpath_path: <string>, opt: <table>)
:::
| Parameter | Description |
|---|---|
| binaryfile | Required. Input binary file path |
| rpath_path | Required. Rpath path to insert |
| opt | Optional. Options |
Change rpath.
::: tip API
rpath.change(binaryfile: <string>, rpath_old: <string>, rpath_new: <string>, opt: <table>)
:::
| Parameter | Description |
|---|---|
| binaryfile | Required. Input binary file path |
| rpath_old | Required. Old rpath path |
| rpath_new | Required. New rpath path |
| opt | Optional. Options |
Remove rpath.
::: tip API
rpath.remove(binaryfile: <string>, rpath_path: <string>, opt: <table>)
:::
| Parameter | Description |
|---|---|
| binaryfile | Required. Input binary file path |
| rpath_path | Required. Rpath path to remove |
| opt | Optional. Options |
Clean all rpaths.
::: tip API
rpath.clean(binaryfile: <string>, opt: <table>)
:::
| Parameter | Description |
|---|---|
| binaryfile | Required. Input binary file path |
| opt | Optional. Options |