A code self-relocation method for embedded system

Tang Xinyu, Zhang Changyou, Liang Chen, Khaled Aourra, Li Yuanzhang*

*Corresponding author for this work

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

1 Citation (Scopus)

Abstract

Symbol relocation is very important for program linking and execution. For modern operating systems in PC, symbol relocation process is completed by static linking or dynamic linking. For the execution of Executable and Linkable Format (ELF) file in Linux, dynamic linker will resolve symbols at runtime. However, many embedded operating systems inhibit supporting dynamic linking of ELF file, which results in the symbol relocation is not successful. In this paper, we proposed a code self-relocation method. This method doesn't need extra support from operating system, and the whole relocation process is finished by code in the program. We relocate the entry in Global Offset Table (GOT) and the pointer in structure. This method is evaluated in a program with 37 source files. The result shows that all the entries in GOT and pointers in structure have been relocated to the absolute address, and the symbol relocation is successful. It proves that the method is simple but effective for the developer.

Original languageEnglish
Title of host publicationProceedings - 2017 IEEE International Conference on Computational Science and Engineering and IEEE/IFIP International Conference on Embedded and Ubiquitous Computing, CSE and EUC 2017
PublisherInstitute of Electrical and Electronics Engineers Inc.
Pages688-691
Number of pages4
ISBN (Electronic)9781538632215
DOIs
Publication statusPublished - 8 Aug 2017
Event20th IEEE International Conference on Computational Science and Engineering and 15th IEEE/IFIP International Conference on Embedded and Ubiquitous Computing, CSE and EUC 2017 - Guangzhou, Guangdong, China
Duration: 21 Jul 201724 Jul 2017

Publication series

NameProceedings - 2017 IEEE International Conference on Computational Science and Engineering and IEEE/IFIP International Conference on Embedded and Ubiquitous Computing, CSE and EUC 2017
Volume1

Conference

Conference20th IEEE International Conference on Computational Science and Engineering and 15th IEEE/IFIP International Conference on Embedded and Ubiquitous Computing, CSE and EUC 2017
Country/TerritoryChina
CityGuangzhou, Guangdong
Period21/07/1724/07/17

Keywords

  • ELF
  • GOT
  • Symbol relocation
  • dynamic linking
  • self-relocaiton

Fingerprint

Dive into the research topics of 'A code self-relocation method for embedded system'. Together they form a unique fingerprint.

Cite this