Method for supervising running stack and static data area overlapping
Patent Information
- Authority / Receiving Office
- CN ยท China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- G CLOUD TECH
- Publication Date
- 2008-10-15
Smart Images
Figure 1 Figure 2 Figure 3
Abstract
Description
technical field
[0001] The invention relates to the detection of program runtime errors in an embedded system, in particular to a method for detecting the overlapping of a running stack and a static data area. Background technique
[0002] Due to price and application reasons, the instruction memory and data memory in the embedded system are relatively small, so when the program is executed, there may be overlapping of different types of data (such as static data area, heap, and running stack) in the data memory. Condition. The static data section (static data sections) includes each data section in the ELF executable file. The loading addresses of these data areas are usually specified in linker scripts. In a simple embedded system, the running program only loads the instruction and data parts in the ELF executable file, and discards the Section Header Table (Section Header Table) that stores the size information of each section in the ELF file. However, most of such sim...