Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/link: making sense of HeadType #22270
The linker makes extensive use of HeadType. It does not make much sense to me.
When used as a value, it is very close to meaning
When used as a flag to the linker,
I think you want PE only. PEGUI is not much different from PE. There are 2 places in cmd/link/internal/ld where that difference is important. On the other hand there are many places where Hwindows is used, so you would end up with code like
And PEGUI will be exported, unlike current windowsgui variable.
We already had PE and PEGUI split before, so you would be effectively revert CL 38761.
As far as I know the notion of "head type" precedes the notion of
Like Alex, I don't think we need
There's really no reason to call your new suggested enum