https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105169
--- Comment #9 from Martin Liška <marxin at gcc dot gnu.org> --- > + const char *sname = "__patchable_function_entries"; > + const char *name = DECL_SECTION_NAME (current_function_decl); > + > + dot = strchr (name + 1, '.'); > + if (!dot) > + dot = name; > + len = strlen (dot) + strlen (sname) + 1; > + rname = (char *) alloca (len); > + > + strcpy (rname, sname); > + strcat (rname, dot); I would prefer using concat function, so something like: char *rname = concat ("__patchable_function_entries", dot, NULL); sect = get_section (rname, (SECTION_LINKONCE | flags), current_function_decl); free (rname);