This is a hacky patch I created to remove aligncomm, which limits us to the 32 bytes.
My real goal however is to make aligncomm a compile time flag.
So that if someone really wants >32 bytes alignment the can enable it with a clang flag.
I am not sure how I would have a flag propagate all the way down to this area of LLVM
I would also like a name suggestion for the flag.
Adding reid here because he is super helpful with these kind of things :)
Why you may ask?
With D36304 we will have support for aligncomm in lld but we will never have support in msvc link.
I would like mingw-w64 to be linkable with link.exe
Note: Achieving this also requires a patch for binutils to rename __image_base__ to __ImageBase for MSVC link which I plan to upstream into mingw-w64 and binutils.
If a flag is not possible from here alternatively we could use MS alignment for anything under 32 bytes and enable aligncomm for anything over that for gnu targets.