https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114337
--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> --- The linker needs to re-scan for new references to libc and libgcc functions anyway. For example a structure copy might be expanded as memcpy. We probably don't introduce new calls to memcpy so maybe for a subset of builtins that are never expanded inline or those that are never automatically generated by the compiler we can put them into the symbol table. Note we can introduce calls to things like stpcpy as well, so it's a bit non-obvious how to classify builtins here. Keying on just whether the decl is built-in is probably too coarse. We could simply include all built-ins in the symbol table. Honza?