Skip to content

Commit 144812a

Browse files
Blackhexgithub-actions
authored andcommitted
Fix C++ global static constructors not being called (#32)
1 parent 5482e51 commit 144812a

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

gcc/config/aarch64/aarch64-coff.h

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,6 @@
8181
#define ASM_OUTPUT_TYPE_DIRECTIVE(STREAM, NAME, TYPE)
8282
#define ASM_DECLARE_FUNCTION_SIZE(FILE, FNAME, DECL)
8383

84-
#undef TARGET_ASM_CONSTRUCTOR
85-
#define TARGET_ASM_CONSTRUCTOR aarch64_elf_asm_constructor
86-
87-
#undef TARGET_ASM_DESTRUCTOR
88-
#define TARGET_ASM_DESTRUCTOR aarch64_elf_asm_destructor
89-
9084
#define TEXT_SECTION_ASM_OP "\t.text"
9185
#define DATA_SECTION_ASM_OP "\t.data"
9286
#define BSS_SECTION_ASM_OP "\t.bss"
@@ -99,11 +93,6 @@
9993
#undef SUPPORTS_INIT_PRIORITY
10094
#define SUPPORTS_INIT_PRIORITY 0
10195

102-
#undef CTORS_SECTION_ASM_OP
103-
#define CTORS_SECTION_ASM_OP "\t.section\t.init_array,\"aw\""
104-
#undef DTORS_SECTION_ASM_OP
105-
#define DTORS_SECTION_ASM_OP "\t.section\t.fini_array,\"aw\""
106-
10796
// #undef STACK_CHECK_STATIC_BUILTIN
10897
// #define STACK_CHECK_STATIC_BUILTIN 1
10998

0 commit comments

Comments
 (0)