gpt4 book ai didi

Multi arch ELF binary: Is it possible with custom sections?(多拱形ELF二进制:是否可以自定义截面?)

转载 作者:bug小助手 更新时间:2023-10-25 13:13:18 26 4
gpt4 key购买 nike



If one is able to create custom sections in an ELF file then is it feasible/possible to dump machine code of different CPU arch into the same ELF file in different section and at runtime map the correct .text section based on the current machine ? Would this not allow for universal binary distribution based on the ELF format ? I get the downside of this is that the executable size would be huge, but from a concept point/experimentation point of view is the idea possible ?

如果能够在ELF文件中创建自定义节,那么是否可以/可能将不同CPU Arch的机器代码转储到不同节中的同一ELF文件中,并在运行时基于当前计算机映射正确的.Text节?这会不会允许基于ELF格式的通用二进制分发?我知道这样做的缺点是可执行文件的大小将是巨大的,但从概念的角度/实验的角度来看,这个想法可能吗?


更多回答

Do you mean like this and this?

你是说像这样和这样吗?

yep that prety much about covers it. Thanks.

是的,这在很大程度上涵盖了它。谢谢。

优秀答案推荐
更多回答

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com