BFD Support
API for use with the GNU BFD library.
More...
Detailed Description
API for use with the GNU BFD library.
Function Documentation
Disassemble a contents of a BFD following flow of control.
- Parameters:
-
| o | opdis disassembler |
| abfd | The BFD to disassemble |
| vma | The address (VMA) of the entry point in the BFD |
opdis_disasm_bfd_entry |
( |
opdis_t |
o, |
|
|
bfd * |
abfd | |
|
) |
| | |
Disassemble a BFD following flow of control from entry point (_start).
- Parameters:
-
| o | opdis disassembler |
| abfd | The BFD to disassemble |
Disassemble a sequence of instructions in a BFD.
- Parameters:
-
| o | opdis disassembler |
| abfd | The BFD to disassemble |
| vma | The address (VMA) in the BFD to start disassembly at. |
| length | The number of bytes to disassemble. |
- Note:
- If length is zero, then all bytes from offset to the end of the BFD will be disassembled.
opdis_disasm_bfd_section |
( |
opdis_t |
o, |
|
|
asection * |
sec | |
|
) |
| | |
Disassemble a the contents of a BFD section using linear disassembly.
- Parameters:
-
| o | opdis disassembler |
| sec | The section to disassemble |
opdis_disasm_bfd_symbol |
( |
opdis_t |
o, |
|
|
asymbol * |
sym | |
|
) |
| | |
Disassemble a BFD following flow of control from a symbol.
- Parameters:
-
| o | opdis disassembler |
| sym | The BFD symbol to start disassembly at. |
opdis_init_from_bfd |
( |
bfd * |
abfd |
) |
|
Initialize an opdis disassembler based on a BFD object.
Allocates an opdis_t using opdis_init(), then configures libopcodes based on information (e.g. the architecture) in the BFD.
- Parameters:
-
| target | A BFD object to operate on |
- See also:
- opdis_init_from_bfd
- Returns:
- An opdis disassembler object
- Note:
- This requires that the BFD be configured correctly for the target architecture. See the documentation for libbfd in the GNU binutils distribution.