Skip to content

Commit b6bf8a7

Browse files
committed
renamed INIT_ARRAY to CONSTRUCTOR_SECTION
1 parent af55745 commit b6bf8a7

18 files changed

Lines changed: 64 additions & 52 deletions

File tree

targets/arm/linkerscript/linkerscript.ld

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
}
2525

2626
/* macro to define a init array. Array name is passed as an argument */
27-
#define INIT_ARRAY(name) \
27+
#define CONSTRUCTOR_SECTION(name) \
2828
.name : \
2929
{ \
3030
. = ALIGN(4); \

targets/chip/atsam3x8e/linkerscript.ld

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ SECTIONS
6464

6565
/* Support C constructors, and C destructors in both user code
6666
and the C library. This also provides support for C++ code. */
67-
INIT_ARRAY(preinit_array) > rom
68-
INIT_ARRAY(init_array) > rom
69-
INIT_ARRAY(fini_array) > rom
67+
CONSTRUCTOR_SECTION(preinit_array) > rom
68+
CONSTRUCTOR_SECTION(init_array) > rom
69+
CONSTRUCTOR_SECTION(fini_array) > rom
7070

7171
/* Stack segment */
7272
.stack (NOLOAD) :

targets/chip/atsam4s2b/linkerscript.ld

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,10 @@ SECTIONS
6464

6565
/* Support C constructors, and C destructors in both user code
6666
and the C library. This also provides support for C++ code. */
67-
INIT_ARRAY(preinit_array) > rom
68-
INIT_ARRAY(init_array) > rom
69-
INIT_ARRAY(fini_array) > rom
67+
CONSTRUCTOR_SECTION(preinit_array) > rom
68+
CONSTRUCTOR_SECTION(init_array) > rom
69+
CONSTRUCTOR_SECTION(fini_array) > rom
70+
7071
/* Stack segment */
7172
.stack (NOLOAD) :
7273
{

targets/chip/lpc1752/linkerscript.ld

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,10 @@ SECTIONS
7979

8080
/* Support C constructors, and C destructors in both user code
8181
and the C library. This also provides support for C++ code. */
82-
INIT_ARRAY(preinit_array) > rom
83-
INIT_ARRAY(init_array) > rom
84-
INIT_ARRAY(fini_array) > rom
82+
CONSTRUCTOR_SECTION(preinit_array) > rom
83+
CONSTRUCTOR_SECTION(init_array) > rom
84+
CONSTRUCTOR_SECTION(fini_array) > rom
85+
8586
/* Stack segment */
8687
.stack (NOLOAD) :
8788
{

targets/chip/lpc1754/linkerscript.ld

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,10 @@ SECTIONS
8080

8181
/* Support C constructors, and C destructors in both user code
8282
and the C library. This also provides support for C++ code. */
83-
INIT_ARRAY(preinit_array) > rom
84-
INIT_ARRAY(init_array) > rom
85-
INIT_ARRAY(fini_array) > rom
83+
CONSTRUCTOR_SECTION(preinit_array) > rom
84+
CONSTRUCTOR_SECTION(init_array) > rom
85+
CONSTRUCTOR_SECTION(fini_array) > rom
86+
8687
/* Stack segment */
8788
.stack (NOLOAD) :
8889
{

targets/chip/lpc1756/linkerscript.ld

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,10 @@ SECTIONS
8080

8181
/* Support C constructors, and C destructors in both user code
8282
and the C library. This also provides support for C++ code. */
83-
INIT_ARRAY(preinit_array) > rom
84-
INIT_ARRAY(init_array) > rom
85-
INIT_ARRAY(fini_array) > rom
83+
CONSTRUCTOR_SECTION(preinit_array) > rom
84+
CONSTRUCTOR_SECTION(init_array) > rom
85+
CONSTRUCTOR_SECTION(fini_array) > rom
86+
8687
/* Stack segment */
8788
.stack (NOLOAD) :
8889
{

targets/chip/lpc1759/linkerscript.ld

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,10 @@ SECTIONS
8383

8484
/* Support C constructors, and C destructors in both user code
8585
and the C library. This also provides support for C++ code. */
86-
INIT_ARRAY(preinit_array) > rom
87-
INIT_ARRAY(init_array) > rom
88-
INIT_ARRAY(fini_array) > rom
86+
CONSTRUCTOR_SECTION(preinit_array) > rom
87+
CONSTRUCTOR_SECTION(init_array) > rom
88+
CONSTRUCTOR_SECTION(fini_array) > rom
89+
8990
/* Stack segment */
9091
.stack (NOLOAD) :
9192
{

targets/chip/lpc1788/linkerscript.ld

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,9 @@ SECTIONS
9292

9393
/* Support C constructors, and C destructors in both user code
9494
and the C library. This also provides support for C++ code. */
95-
INIT_ARRAY(preinit_array) > rom
96-
INIT_ARRAY(init_array) > rom
97-
INIT_ARRAY(fini_array) > rom
95+
CONSTRUCTOR_SECTION(preinit_array) > rom
96+
CONSTRUCTOR_SECTION(init_array) > rom
97+
CONSTRUCTOR_SECTION(fini_array) > rom
9898

9999
/* Stack segment */
100100
.stack (NOLOAD) :

targets/chip/lpc55s66/linkerscript.ld

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,10 @@ SECTIONS
7373

7474
/* Support C constructors, and C destructors in both user code
7575
and the C library. This also provides support for C++ code. */
76-
INIT_ARRAY(preinit_array) > rom
77-
INIT_ARRAY(init_array) > rom
78-
INIT_ARRAY(fini_array) > rom
76+
CONSTRUCTOR_SECTION(preinit_array) > rom
77+
CONSTRUCTOR_SECTION(init_array) > rom
78+
CONSTRUCTOR_SECTION(fini_array) > rom
79+
7980
/* Stack segment */
8081
.stack (NOLOAD) :
8182
{

targets/chip/lpc802/linkerscript.ld

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,10 @@ SECTIONS
6969

7070
/* Support C constructors, and C destructors in both user code
7171
and the C library. This also provides support for C++ code. */
72-
INIT_ARRAY(preinit_array) > rom
73-
INIT_ARRAY(init_array) > rom
74-
INIT_ARRAY(fini_array) > rom
72+
CONSTRUCTOR_SECTION(preinit_array) > rom
73+
CONSTRUCTOR_SECTION(init_array) > rom
74+
CONSTRUCTOR_SECTION(fini_array) > rom
75+
7576
/* Stack segment */
7677
.stack (NOLOAD) :
7778
{

0 commit comments

Comments
 (0)