diff --git a/docs/en/api-guides/linker-script-generation.rst b/docs/en/api-guides/linker-script-generation.rst index 1df79be4b6..3c8256208c 100644 --- a/docs/en/api-guides/linker-script-generation.rst +++ b/docs/en/api-guides/linker-script-generation.rst @@ -24,16 +24,15 @@ This section presents a guide for quickly placing code/data to RAM and RTC memor For this guide, suppose we have the following:: - component + components └── my_component - └── CMakeLists.txt - ├── component.mk - ├── Kconfig - ├── src/ - │ ├── my_src1.c - │ ├── my_src2.c - │ └── my_src3.c - └── my_linker_fragment_file.lf + ├── CMakeLists.txt + ├── Kconfig + ├── src/ + │ ├── my_src1.c + │ ├── my_src2.c + │ └── my_src3.c + └── my_linker_fragment_file.lf - a component named ``my_component`` that is archived as library ``libmy_component.a`` during build - three source files archived under the library, ``my_src1.c``, ``my_src2.c`` and ``my_src3.c`` which are compiled as ``my_src1.o``, ``my_src2.o`` and ``my_src3.o``, respectively diff --git a/docs/zh_CN/api-guides/linker-script-generation.rst b/docs/zh_CN/api-guides/linker-script-generation.rst index ba54c99f31..fe347e85a2 100644 --- a/docs/zh_CN/api-guides/linker-script-generation.rst +++ b/docs/zh_CN/api-guides/linker-script-generation.rst @@ -24,16 +24,15 @@ 假设用户有:: - component + components └── my_component - └── CMakeLists.txt - ├── component.mk - ├── Kconfig - ├── src/ - │ ├── my_src1.c - │ ├── my_src2.c - │ └── my_src3.c - └── my_linker_fragment_file.lf + ├── CMakeLists.txt + ├── Kconfig + ├── src/ + │ ├── my_src1.c + │ ├── my_src2.c + │ └── my_src3.c + └── my_linker_fragment_file.lf - 名为 ``my_component`` 的组件,在构建过程中存储为 ``libmy_component.a`` 库文件 - 库文件包含的三个源文件:``my_src1.c``、``my_src2.c`` 和 ``my_src3.c``,编译后分别为 ``my_src1.o``、``my_src2.o`` 和 ``my_src3.o``