Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
cmd/compile: review compiler-generated symbol naming scheme #35088
cmd/compile generates a lot of linker symbols for internal objects, and we've amassed a number of ad hoc naming schemes for them. I'm concerned that there might be collisions, particularly with user-defined symbols.
We should review and probably catalog the existing symbol, and try to find a more uniform naming scheme that we can ensure is collision-free.
This may also relate to the linker rewrite. A lot of the compiler-generated symbols only have names for diagnostics purposes. In the new linker design, at least for compiler-generated symbols that aren't dupok, we can create symbols that aren't referenced by name at all.