Search International and National Patent Collections
|1. (WO2017067175) METHOD, APPARATUS AND DEVICE FOR LOADING ELF FILE, AND COMPUTER STORAGE MEDIUM|
|Applicants:||BAIDU ONLINE NETWORK TECHNOLOGY (BEIJING) CO., LTD.
|Title:||METHOD, APPARATUS AND DEVICE FOR LOADING ELF FILE, AND COMPUTER STORAGE MEDIUM|
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.