munch出来的ctdt.c文件到底是干什么用的?

Description :
Implement the execution routines for constructor and
destructor functions.
The ctors and dtors are constructor and destructor initialization functions.
Following GCC, these are data sections containing function pointers.
The sections are sorted into a order which allows for the relative ordering
of the functions.
The following is a sample linker map, illustrating the sections:
---------------------------------------------------------------------
.ctors 00106284 00000020
.ctors 00106284 00000004 ctordtor.o
__CTOR_LIST__ 00106284 00000004
.ctors 00106288 00000004 test2.o
.ctors.00050 0010628c 00000004 test2.o
.ctors.65202 00106290 00000004 test2a.o
.ctors.65435 00106294 00000004 test2.o
.ctors.65461 00106298 00000004 test2.o
.ctors.65532 0010629c 00000004 test2a.o
.ctors.65536 001062a0 00000004 ctordtor.o
__CTOR_END__ 001062a0 00000004
----------------------------------------------------------------------
回复
打赏帖 | |
---|---|
C语言函数宏的三种封装方式被打赏50分 | |
嵌入式LinuxC语言程序调试和宏使用技巧被打赏50分 | |
让代码中包含最新的编译时间信息被打赏50分 | |
【分享开发笔记,赚取电动螺丝刀】STM32F769LVGL优化显示被打赏26分 | |
rtthread硬件加密--2crc加密分析被打赏10分 | |
【分享开发笔记,赚取电动螺丝刀】STM32F769驱动ST7789以及显示优化被打赏36分 | |
【分享开发笔记,赚取电动螺丝刀】S32K146 PAL模拟I2C驱动适配被打赏23分 | |
我想要一部加热台+电源硬件设计规范被打赏16分 | |
我想要一部加热台+LED背光驱动芯片RT9293知识被打赏18分 | |
【分享开发笔记,赚取电动螺丝刀】S32K146 ADC 模块配置使用被打赏24分 |