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
When the relocation section is placed before the relocated section and the relocated section is not defined in the linker script, an error will occur during the linking process.
Issue Cause:
In a.ro, .rela.text precedes its relocated InputSection.text. addOrphanSections doesn't handle this scenario.
When it processes .rela.text, in the called getOutputSectionName, rel->getOutputSection() is nullptr (input .text doesn't yet have a parent output section), leading to an assertion failure.