Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/link: code cleanup #22095
General tracking bug for
This code base was converted from C it shows. Several contributors have made attempts at improving various parts of it, though there is more to be done.
In particular, there are a lot of global variables and a lack of documentation. In discussion on previous cleanup CLs the general agreement is that the global variables should become parameters passed to the parts of the linker that need them. To facilitate this, a lot of variables have been dumped into the
There is also some duplication that needs dealing with (some of which is my fault). For example, there is a global variable