Skip to content
Discussion options

You must be logged in to vote

确实应该没什么区别,我是前面的没写对,就是任务二中合并section时,偏移量计算有误,我做的调整是假设merged_section已经有来自之前目标文件的数据。当添加新的section的relocs时,这些relocs的offset是相对于该section在原目标文件中的偏移量,而不是合并后的merged_section中的偏移量。然后任务三就改变一下计算方式就行了。

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@yzy0516
Comment options

@EXLYSHA
Comment options

@508liang
Comment options

Answer selected by andylizf
@508liang
Comment options

@andylizf
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants