OFS2RVA(1)
π OFS2RVA π
okay bestie, gather round, because ofs2rva is one of those tiny little tools that does exactly ONE thing and does it flawlessly, and honestly? we love that for her. she lives in the pev PE file analysis toolkit (you know, the readpe fam π) and she's about to convert a raw file offset into an RVA for you. no drama, no fuss, just math and vibes. β¨
β¨ NAME β¨
ofs2rva β converts a PE raw file offset to relative virtual address π¦
πΈ SYNOPSIS πΈ
ofs2rva offset pefile
π DESCRIPTION π
ofs2rva converts a raw file offset to RVA (Relative Virtual Address), if it's valid. that "if it's valid" is doing a LOT of heavy lifting there, so likeβ¦ pay attention, okay? she's not gonna hold your hand if you hand her nonsense. π
she's part of pev, the PE file analysis toolkit. the whole squad. the iconique collective. π«Ά
offsetβ a valid PE file offset, in decimal or hexadecimal (hex has to be prefixed with0x, no cap, that's the rule).pefileβ a PE32/PE32+ executable or dynamic linked library file. that's a.exeor a.dllfor the girlies keeping score. π
π OPTIONS π
-V,--versionβ show version. that's it. she's telling you who she is. main character behavior. π--helpβ show this help. when in doubt, ask for help. growth. π±
π₯ EXAMPLES π₯
get the RVA of the 0x1b9b8 offset of calc.exe:
$ ofs2rva 0x1b9b8 calc.exe
see? one line. she ate and left no crumbs. π β¨
π REPORTING BUGS π
found something cursed? first, please check the latest development code β maybe someone already fixed it, bestie β and then report at:
https://github.com/mentebinaria/readpe/issues
we're not mad, we're just disappointed. (jk, we're not even disappointed, we want your bug report fr fr π«Ά)
π SEE ALSO π
pedis(1), pehash(1), peldd(1), pepack(1), peres(1), pescan(1), pesec(1), pestr(1), readpe(1), rva2ofs(1)
β COPYRIGHT β
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.
translation: she's free, she's open, she's yours to remix, but if she breaks, that's on you. no warranty. periodt. π
π¦ SEE ALSO π¦
(yeah she gets her own second SEE ALSO because she's the mirror twin of this whole operation. if ofs2rva goes this way, rva2ofs goes the other way. iconic duo. π)
and that's the whole page, bestie π this one came straight out of the General Commands Manual, section 1 β OFS2RVA(1), top and bottom, like matching nails π
β part of the pev toolkit. now go convert some offsets, you absolute genius. bye bye! πβ¨π¦
π¦ where this page comes from
- alpine 3.24: pev-doc 0.82-r0 Β· GPL-2.0-or-later AND MIT AND BSD-2-Clause
- debian trixie: readpe 0.84-2 Β· GPL-2.0-or-later WITH OpenSSL Exception
- ubuntu noble: readpe 0.82-3.1build2 Β· GPL-2.0-or-later WITH OpenSSL Exception
- ubuntu questing: readpe 0.84-2
- ubuntu resolute: readpe 0.85.1-1 Β· GPL-2.0-or-later WITH OpenSSL Exception
- ubuntu stonking: readpe 0.85.1-1build1 Β· GPL-2.0-or-later WITH OpenSSL Exception
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms