Skip to content

Commit e257455

Browse files
committed
docs: update README
1 parent 8164419 commit e257455

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

README.md

+3-5
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ Pull Requests are of course more than welcome :smirk:.
1414

1515
# Installation
1616

17-
Support: Python 2.7 and Python 3.x.
18-
1917
Use `pip`:
2018

2119
```bash
@@ -27,7 +25,7 @@ Or clone yourself and build:
2725
```bash
2826
git clone git@github.com:doronz88/simpleelf.git
2927
cd simpleelf
30-
python setup.py install
28+
python -m pip install -e . -U
3129
```
3230

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

8078
# set entry point
8179
e.set_entry(code_address)
@@ -84,7 +82,7 @@ e.set_entry(code_address)
8482
# file
8583
bss_address = 0x5678
8684
bss_size = 0x200
87-
e.add_empty_data_section('.bss', bss_address, bss_size)
85+
e.add_empty_data_section(bss_address, bss_size, name='.bss')
8886

8987
# get raw elf
9088
e.build()

0 commit comments

Comments
 (0)