Skip to content

Commit f6c243f

Browse files
Delete preinit, init, and fini array sections from linkerscript
1 parent 25b8eaf commit f6c243f

File tree

1 file changed

+0
-34
lines changed

1 file changed

+0
-34
lines changed

linkerscript.ld

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -83,40 +83,6 @@ SECTIONS
8383
. = ALIGN(4);
8484
} > ram
8585

86-
/* Support C constructors, and C destructors in both user code
87-
and the C library. This also provides support for C++ code. */
88-
.preinit_array :
89-
{
90-
. = ALIGN(4);
91-
PROVIDE(__preinit_array_start = .);
92-
93-
KEEP(*(.preinit_array))
94-
95-
PROVIDE(__preinit_array_end = .);
96-
} > ram
97-
98-
.init_array :
99-
{
100-
. = ALIGN(4);
101-
PROVIDE(__init_array_start = .);
102-
103-
KEEP(*(SORT(.init_array.*)))
104-
KEEP(*(.init_array))
105-
106-
PROVIDE(__init_array_end = .);
107-
} > ram
108-
109-
.fini_array :
110-
{
111-
. = ALIGN(4);
112-
PROVIDE(__fini_array_start = .);
113-
114-
KEEP(*(SORT(.fini_array.*)))
115-
KEEP(*(.fini_array))
116-
117-
PROVIDE(__fini_array_end = .);
118-
} > ram
119-
12086
PrgData :
12187
{
12288
. = ALIGN(4);

0 commit comments

Comments
 (0)