You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Starting with ESP-IDF v6.0, the build system no longer allows orphan sections in the final ELF file. The linker will now produce an error if any orphan sections are encountered during linking.
10
+
11
+
.. note::
12
+
13
+
An *orphan section* is a section that is not explicitly placed into any output section by the linker script and is not discarded during linking.
14
+
15
+
How to Resolve Orphan Section Errors
16
+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
17
+
18
+
If you encounter an orphan section error during linking, you can resolve it using one of the following methods:
19
+
20
+
1. Remove the code or data that causes the orphan section, if it's unused or unnecessary.
21
+
2. Explicitly place the orphan section using a :ref:`linker fragment file <ldgen-linker-fragment-files>`.
22
+
3. Suppress errors by setting :ref:`CONFIG_COMPILER_ORPHAN_SECTIONS` to ``warning`` or ``place``.
23
+
24
+
.. warning::
25
+
26
+
The option 3 is **not recommended**, as orphan sections may indicate misconfigured memory mapping or unintentional behavior in your application.
Copy file name to clipboardExpand all lines: tools/idf_py_actions/hints.yml
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -434,7 +434,7 @@
434
434
435
435
-
436
436
re: "unplaced orphan section"
437
-
hint: "Avoid creating custom sections. Please refer to the 'Linker Script Generation' article in the IDF documentation to address this. Or set option CONFIG_COMPILER_ORPHAN_SECTIONS_PLACE (not recommended)."
437
+
hint: "An orphan section was detected during linking stage. For more information run 'idf.py docs -sp migration-guides/release-6.x/build-system.html#linker-orphan-handling-behavior-changed-to-error'."
438
438
439
439
-
440
440
re: "the current mclk multiple cannot perform integer division"
0 commit comments