https://github.com/maxgio92/symbol-to-offset
Tool to get ELF symbol and section offsets
https://github.com/maxgio92/symbol-to-offset
Last synced: about 1 year ago
JSON representation
Tool to get ELF symbol and section offsets
- Host: GitHub
- URL: https://github.com/maxgio92/symbol-to-offset
- Owner: maxgio92
- Created: 2025-04-16T07:50:46.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-16T07:57:42.000Z (about 1 year ago)
- Last Synced: 2025-04-16T10:22:26.526Z (about 1 year ago)
- Language: Go
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## symbol-to-offset
### Usage
```
Usage: symbol-to-offset EXECUTABLE SYMBOL
EXECUTABLE Path to the executable ELF file.
SYMBOL The name of the symbol in the executable file.
```
For instance:
```shell
$ symbol-to-offset ./utrace runtime.asmcgocall.abi0
+-------------------------+-----------+---------------+---------+------------+----------------+
| SYMBOL | SYMBOL VA | SYMBOL OFFSET | SECTION | SECTION VA | SECTION OFFSET |
+-------------------------+-----------+---------------+---------+------------+----------------+
| runtime.asmcgocall.abi0 | 475380 | 75380 | .text | 4019A0 | 19A0 |
+-------------------------+-----------+---------------+---------+------------+----------------+
```
### Installation
```shell
go install github.com/maxgio92/symbol-to-offset@latest
```