Skip to content

Commit 3696afe

Browse files
Blackhexgithub-actions
authored andcommitted
Fix C++ global static constructors not being called (#32)
1 parent 07d046b commit 3696afe

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
@@ -68,12 +68,6 @@
6868
#define ASM_OUTPUT_TYPE_DIRECTIVE(STREAM, NAME, TYPE)
6969
#define ASM_DECLARE_FUNCTION_SIZE(FILE, FNAME, DECL)
7070

71-
#undef TARGET_ASM_CONSTRUCTOR
72-
#define TARGET_ASM_CONSTRUCTOR aarch64_elf_asm_constructor
73-
74-
#undef TARGET_ASM_DESTRUCTOR
75-
#define TARGET_ASM_DESTRUCTOR aarch64_elf_asm_destructor
76-
7771
#define TEXT_SECTION_ASM_OP "\t.text"
7872
#define DATA_SECTION_ASM_OP "\t.data"
7973
#define BSS_SECTION_ASM_OP "\t.bss"
@@ -86,11 +80,6 @@
8680
#undef SUPPORTS_INIT_PRIORITY
8781
#define SUPPORTS_INIT_PRIORITY 0
8882

89-
#undef CTORS_SECTION_ASM_OP
90-
#define CTORS_SECTION_ASM_OP "\t.section\t.init_array,\"aw\""
91-
#undef DTORS_SECTION_ASM_OP
92-
#define DTORS_SECTION_ASM_OP "\t.section\t.fini_array,\"aw\""
93-
9483
// #undef STACK_CHECK_STATIC_BUILTIN
9584
// #define STACK_CHECK_STATIC_BUILTIN 1
9685

0 commit comments

Comments
 (0)