[PATCH] D38005: [COFF] Check for sections larger than 4 GiB

Rui Ueyama via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 19 16:09:03 PDT 2017


ruiu added inline comments.


================
Comment at: test/COFF/section-size.s:9
+
+# RUN: not lld-link -entry:main %tmain.obj %t80000000_1.obj %t80000000_2.obj -out:%t.exe 2>&1 | FileCheck %s
+# CHECK: error: section larger than 4 GiB: .bss
----------------
smeenai wrote:
> ruiu wrote:
> > Instead of creating a temporary file by cp, you can just pass the same object file twice.
> lld-link deduplicates input object files: https://reviews.llvm.org/diffusion/L/browse/lld/trunk/COFF/Driver.cpp;313693$295-303. Is there some other way to get around that?
Oh, I didn't know that. `cp` is of course fine if that's the case.


https://reviews.llvm.org/D38005





More information about the llvm-commits mailing list