Skip to content

Commit

Permalink
docs: update README
Browse files Browse the repository at this point in the history
  • Loading branch information
doronz88 committed Sep 19, 2023
1 parent 8164419 commit e257455
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ Pull Requests are of course more than welcome :smirk:.

# Installation

Support: Python 2.7 and Python 3.x.

Use `pip`:

```bash
Expand All @@ -27,7 +25,7 @@ Or clone yourself and build:
```bash
git clone [email protected]:doronz88/simpleelf.git
cd simpleelf
python setup.py install
python -m pip install -e . -U
```

# Running
Expand Down Expand Up @@ -75,7 +73,7 @@ e.add_segment(0x88771122, b'data in 0x88771122',
# add a code section inside the first segment
code_address = text_address + text_buffer.find(code) # point at CODECODE
code_size = len(code)
e.add_code_section('.text', code_address, code_size)
e.add_code_section(code_address, code_size, name='.text')

# set entry point
e.set_entry(code_address)
Expand All @@ -84,7 +82,7 @@ e.set_entry(code_address)
# file
bss_address = 0x5678
bss_size = 0x200
e.add_empty_data_section('.bss', bss_address, bss_size)
e.add_empty_data_section(bss_address, bss_size, name='.bss')

# get raw elf
e.build()
Expand Down

0 comments on commit e257455

Please sign in to comment.