Skip to content

Commit b87f311

Browse files
authored
[projmgr] Enhance LLVM/clang linker script for compatibility with ATfE 21 (#2224)
1 parent e62cfeb commit b87f311

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tools/projmgr/templates/clang_linker_script.ld.src

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ SECTIONS
120120
. = ALIGN(8);
121121

122122
/* lists of constructors and destructors */
123+
PROVIDE_HIDDEN ( __bothinit_array_start = . );
123124
PROVIDE_HIDDEN ( __preinit_array_start = . );
124125
KEEP (*(.preinit_array))
125126
PROVIDE_HIDDEN ( __preinit_array_end = . );
@@ -128,6 +129,7 @@ SECTIONS
128129
KEEP (*(SORT_BY_INIT_PRIORITY(.init_array.*) SORT_BY_INIT_PRIORITY(.ctors.*)))
129130
KEEP (*(.init_array .ctors))
130131
PROVIDE_HIDDEN ( __init_array_end = . );
132+
PROVIDE_HIDDEN ( __bothinit_array_end = . );
131133

132134
PROVIDE_HIDDEN ( __fini_array_start = . );
133135
KEEP (*(SORT_BY_INIT_PRIORITY(.fini_array.*) SORT_BY_INIT_PRIORITY(.dtors.*)))

0 commit comments

Comments
 (0)