如何在Linux上用尽? [英] How to run aout on linux?

查看:78
本文介绍了如何在Linux上用尽?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问题是如何在Linux系统上执行out-format二进制文件(我的意思是旧格式,例如,在FreeBSD迁移到ELF之前使用的旧格式).是否有可能无需额外编码即可这样做(是否存在一些现有解决方案)?可能应该是Linux内核的内核模块或补丁程序形式.另一个解决方案可以是用户空间启动程序(甚至可以是运行时链接程序).我已经搜索了类似的东西,但是找不到.我尚未检查系统调用接口的差异,如果对此有任何评论,欢迎提供它们.

The question is how to execute aout-format binary (I mean old format which for example used on FreeBSD before it has migrated to ELF) on Linux system. Is there a possibility to do so without extra coding (is there some existing solution)? Probably it should be in form of kernel module or patch for the Linux kernel. Another solution could be user-space launcher (may be even run-time linker). I have searched for something similar but was unable to found something. I have not yet checked difference in system calls interfaces, if you have some comments about that, you are welcome to provide them.

P.S.我知道为静态二进制文件编写用户空间启动器非常简单,但是问题是关于一些现有的解决方案.

P.S. I know that writing user-space launcher for aout static binary is quite trivial but the question is about some existing solution.

推荐答案

在内核配置中检查CONFIG_BINFMT_AOUT.

Check for CONFIG_BINFMT_AOUT in your kernel config.

如果您的内核具有/proc/config.gz:

If your kernel has /proc/config.gz:

zgrep CONFIG_BINFMT_AOUT /proc/config.gz

在Ubuntu等系统上:

On Ubuntu and the like:

grep CONFIG_BINFMT_AOUT /boot/config-$(uname -r)

这篇关于如何在Linux上用尽?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆