An open API service indexing awesome lists of open source software.

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

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
```