[PATCH] D36379: LLVM: Make GNU COFF Aligncomm optional

Martell Malone via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Aug 6 10:45:00 PDT 2017


martell added a comment.

In https://reviews.llvm.org/D36379#833386, @mstorsjo wrote:

> I think one important question that needs to be looked into is, does GNU ld align comm symbols at all if we omit this? There's a neat testcase in lld (COFF/common-something iirc) that you might use as base for figuring that out. If it doesn't, I'm afraid we can't do this.


In the very least we should be able to add a flag like `-fno-aligncomm` for clang to compile without it. This way we can decided at compile time if we want support for linking with link.exe or gnu ld.


Repository:
  rL LLVM

https://reviews.llvm.org/D36379





More information about the llvm-commits mailing list