Skip to content

Commit

Permalink
Fix C++ global static constructors not being called (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
Blackhex authored and github-actions committed Jan 16, 2025
1 parent 8973f4b commit 3ac5ec2
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions gcc/config/aarch64/aarch64-coff.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,6 @@
#define ASM_OUTPUT_TYPE_DIRECTIVE(STREAM, NAME, TYPE)
#define ASM_DECLARE_FUNCTION_SIZE(FILE, FNAME, DECL)

#undef TARGET_ASM_CONSTRUCTOR
#define TARGET_ASM_CONSTRUCTOR aarch64_elf_asm_constructor

#undef TARGET_ASM_DESTRUCTOR
#define TARGET_ASM_DESTRUCTOR aarch64_elf_asm_destructor

#define TEXT_SECTION_ASM_OP "\t.text"
#define DATA_SECTION_ASM_OP "\t.data"
#define BSS_SECTION_ASM_OP "\t.bss"
Expand All @@ -86,11 +80,6 @@
#undef SUPPORTS_INIT_PRIORITY
#define SUPPORTS_INIT_PRIORITY 0

#undef CTORS_SECTION_ASM_OP
#define CTORS_SECTION_ASM_OP "\t.section\t.init_array,\"aw\""
#undef DTORS_SECTION_ASM_OP
#define DTORS_SECTION_ASM_OP "\t.section\t.fini_array,\"aw\""

// #undef STACK_CHECK_STATIC_BUILTIN
// #define STACK_CHECK_STATIC_BUILTIN 1

Expand Down

0 comments on commit 3ac5ec2

Please sign in to comment.