Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
假设可执行文件中的所有指令都位于该可执行文件的文本部分内是否安全?我从未见过格式违反此假设的可执行文件。
不,代码可能位于任何标记为此类的部分中。此外,只要适当的页面在运行时被标记为可执行,或者如果代码被复制到可执行页面,代码可以位于任何部分。
例如,除了. /bin/true_ _.plt.init.fini.text
/bin/true
.plt
.init
.fini
.text