本文共 1788 字,大约阅读时间需要 5 分钟。
在Blackfin的Linux世界中,有两种基本的文件格式:
这两种格式都支持静态和动态链接(共享库),但是,ELF更容易使用及创建动态链接库。只有ELF支持动态加载(dlopen(), dlsym(), dlclose()),以及创建和维护共享库的标准方法。
记住在Linux系统下面,我们使用FDPIC ELF格式。FDPIC格式和ELF格式的不同之处,仅仅在于其内部要求在没有MMU的情况下工作。从程序员的角度来说,无论从哪点来看,ELF就是ELF。
-----------------------------------------------------------------------------------------------------------------
Files can be in two basic formats in the Blackfin Linux world:
dlopen()
,dlsym()
, dlclose()
), and the standard method for creating and maintaining shared libraries. (For more information on libraries, see the page.) Keep in mind that under Linux, we use the FDPIC ELF format. The difference between the FDPICELF format and theELF format is merely in the internals (how the PLT is implemented) as a requirement for working without an MMU. For all intents and purposes from the programmer's perspective, the ELF is anELF.
转载地址:http://qxtsi.baihongyu.com/