author | Oleksandr Gavenko <gavenkoa@gmail.com> |
Sat, 10 Feb 2018 01:28:53 +0200 | |
changeset 2227 | 1e9323e7ec88 |
parent 1912 | 8b81a8f0f692 |
permissions | -rw-r--r-- |
1675
7e5ff3a96f2d
Convert ELF to Intex hex format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
892
diff
changeset
|
1 |
.. -*- coding: utf-8; -*- |
892 | 2 |
|
1675
7e5ff3a96f2d
Convert ELF to Intex hex format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
892
diff
changeset
|
3 |
============ |
7e5ff3a96f2d
Convert ELF to Intex hex format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
892
diff
changeset
|
4 |
Assempler. |
7e5ff3a96f2d
Convert ELF to Intex hex format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
892
diff
changeset
|
5 |
============ |
7e5ff3a96f2d
Convert ELF to Intex hex format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
892
diff
changeset
|
6 |
.. contents:: |
1905
fba288d59662
Include only local subsections into TOC. This prevent duplication of
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1682
diff
changeset
|
7 |
:local: |
1675
7e5ff3a96f2d
Convert ELF to Intex hex format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
892
diff
changeset
|
8 |
|
7e5ff3a96f2d
Convert ELF to Intex hex format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
892
diff
changeset
|
9 |
Decompile binary file. |
7e5ff3a96f2d
Convert ELF to Intex hex format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
892
diff
changeset
|
10 |
====================== |
7e5ff3a96f2d
Convert ELF to Intex hex format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
892
diff
changeset
|
11 |
|
7e5ff3a96f2d
Convert ELF to Intex hex format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
892
diff
changeset
|
12 |
With GNU Binutils:: |
892 | 13 |
|
14 |
$ objdump -w -d file.o |
|
15 |
||
1675
7e5ff3a96f2d
Convert ELF to Intex hex format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
892
diff
changeset
|
16 |
Convert ELF to binary format. |
7e5ff3a96f2d
Convert ELF to Intex hex format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
892
diff
changeset
|
17 |
============================= |
7e5ff3a96f2d
Convert ELF to Intex hex format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
892
diff
changeset
|
18 |
:: |
7e5ff3a96f2d
Convert ELF to Intex hex format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
892
diff
changeset
|
19 |
|
1682
f24fa90e806b
Convert ELF to binary format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1675
diff
changeset
|
20 |
$ objcopy -O binary image.elf image.bin |
f24fa90e806b
Convert ELF to binary format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1675
diff
changeset
|
21 |
|
1675
7e5ff3a96f2d
Convert ELF to Intex hex format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
892
diff
changeset
|
22 |
Convert ELF to Intex hex format. |
7e5ff3a96f2d
Convert ELF to Intex hex format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
892
diff
changeset
|
23 |
================================ |
7e5ff3a96f2d
Convert ELF to Intex hex format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
892
diff
changeset
|
24 |
:: |
7e5ff3a96f2d
Convert ELF to Intex hex format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
892
diff
changeset
|
25 |
|
7e5ff3a96f2d
Convert ELF to Intex hex format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
892
diff
changeset
|
26 |
$ avr-objcopy -O ihex image.elf image.ihex |
7e5ff3a96f2d
Convert ELF to Intex hex format.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
892
diff
changeset
|
27 |