radare2/doc/io.md

23 lines
914 B
Markdown
Raw Normal View History

2014-05-13 15:32:01 +00:00
How IO should work
==================
* Maps
2018-02-27 09:54:54 +00:00
Used to select fd. Mapaddr..size
2014-05-13 15:32:01 +00:00
* Sections
2018-02-27 09:54:54 +00:00
Used to specify vaddr<->paddr
2014-05-13 15:32:01 +00:00
Manually selecting fd is still valid and it should override maps fdselection. This is.. We need a way to tell r2 to view one fd or all of them. In case of having two files mapped on the same address space we will select the last opened.
The base address is used to reallocate all vaddr offsets.
Reading/writing ops should be done in a loop checking for the section boundaries.
2019-06-18 05:13:08 +00:00
The sections must be associated to a file, but we should be able to display/use them all in case of having non forced fd. This is, when not having overlapped files in memory.
2014-05-13 15:32:01 +00:00
The write ops should only obey to the global io configuration and ignore the section permissions (maybe just throw a warning?)
Atm sections are dupped in io and bin. We should merge them. Maybe using sdb, so we just reuse it