https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109286
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed| |2023-03-26
Ever confirmed|0 |1
Status|UNCONFIRMED |NEW
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
crtstuff.c:
CRT_CALL_STATIC_FUNCTION (__LIBGCC_INIT_SECTION_ASM_OP__, frame_dummy)
Then from c-family/c-cppbuiltin.cc:
#ifdef INIT_SECTION_ASM_OP
builtin_define_with_value ("__LIBGCC_INIT_SECTION_ASM_OP__",
INIT_SECTION_ASM_OP, 1);
#endif
>From config/elfos.h:
#define INIT_SECTION_ASM_OP "\t.section\t.init"
#define FINI_SECTION_ASM_OP "\t.section\t.fini"
Most other targets include initfini-array.h which does:
initfini-array.h:#undef INIT_SECTION_ASM_OP
or they do:
frv/frv.h:#define INIT_SECTION_ASM_OP "\t.section .init,\"ax\""
microblaze/microblaze.h:#define INIT_SECTION_ASM_OP
"\t.section\t.init,\"ax\""
rs6000/sysv4.h:#define INIT_SECTION_ASM_OP "\t.section\t\".init\",\"ax\""
h8300 could do the same ...