Search International and National Patent Collections

1. (WO2017067175) METHOD, APPARATUS AND DEVICE FOR LOADING ELF FILE, AND COMPUTER STORAGE MEDIUM

Pub. No.:    WO/2017/067175    International Application No.:    PCT/CN2016/084304
Publication Date: Fri Apr 28 01:59:59 CEST 2017 International Filing Date: Thu Jun 02 01:59:59 CEST 2016
IPC: G06F 9/445
Applicants: BAIDU ONLINE NETWORK TECHNOLOGY (BEIJING) CO., LTD.
百度在线网络技术(北京)有限公司
Inventors: QIN, Song
秦松
CHEN, Xin
陈鑫
WEI, Guangjun
位广军
MA, Jiazhi
马家智
GUI, Jingwen
桂敬文
WANG, Botong
王博通
WANG, Xiaoqing
王晓卿
ZHANG, Hongwei
张洪卫
CHANG, Lei
常磊
ZHANG, Zhi
张治
LI, Xinkai
李新开
Title: METHOD, APPARATUS AND DEVICE FOR LOADING ELF FILE, AND COMPUTER STORAGE MEDIUM
Abstract:
A method, apparatus and device for dynamically loading an executable and linking format (ELF) file, and a computer storage medium. The method comprises: parsing a static library file in an ELF file to obtain an object file (101); extracting an effective segment from the object file, and recording effective segment information (102); and loading the effective segment, and separately establishing an object mapping table and a function mapping table for objects and functions in the object file to re-position the objects and the functions in the loaded effective segment (103). By means of the method and device for dynamically loading an ELF file provided in the solution, the troubles of an embedded system needing to depend on a specific instruction set when the embedded system parses and loads an ELF file and the embedded system is not be suitable for all embedded processor architectures in the prior art can be eliminated, applications of multiple ELF files can be simultaneously operated under a specific processor system structure, and dynamic linking can be realized, thereby greatly reducing a file volume generated by using static linking before, and reducing power consumption.