DOKK / manpages / debian 12 / pev / ofs2rva.1.en
OFS2RVA(1) General Commands Manual OFS2RVA(1)

ofs2rva - converts a PE raw file offset to relative virtual address

ofs2rva offset pefile

ofs2rva converts a raw file offset to RVA (Relative Virtual Address), if it's valid. It's part of pev, the PE file analysis toolkit.

offset is a valid PE file offset in decimal or hexadecimal (prefixed with 0x).

pefile is a PE32/PE32+ executable or dynamic linked library file.

Show version.

Show this help.

Get RVA of 0x1b9b8 offset of calc.exe:

$ ofs2rva 0x1b9b8 calc.exe

Please, check the latest development code and report at https://github.com/merces/pev/issues

SEE ALSO

pedis(1), pehash(1), peldd(1), pepack(1), peres(1), pescan(1), pesec(1), pestr(1), readpe(1), rva2ofs(1)

Copyright (C) 2012 - 2020 pev authors. License GPLv2+: GNU GPL version 2 or later <https://www.gnu.org/licenses/gpl-2.0.txt>. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.

SEE ALSO

rva2ofs(1)