We only support ELF now, so ASM_TYPE_DIRECTIVE is no longer necessary--we can just use .type unconditionally. We require fairly recent binutils and don't attempt to support non-GNU assemblers. GAS recognizes any of @ # % as the prefix for the type name. Of these, @ and # are the comment characters on some machines, but % works (AFAIK) for every machine. So we can get rid of ASM_TYPE_DIRECTIVE_PREFIX and just use % everywhere. GAS also supports the syntax: .type SYMBOL,"TYPE" (with double-quotes) so that could be the new norm, though % seems slightly preferable to me. This could be done in multiple stages, but it's probably not worth dragging it out. 1. Remove the configure test and just define the macro unconditionally either in config.h.in or in libc-symbols.h (for each macro, could even be 1a and 1b steps). 2. Change all uses of the macro to just use direct assembler syntax. 3. Remove the macro.
Mine.
Created attachment 6560 [details] Untested fix
Fixed.