Files
clang-p2996/lld/test/COFF/pdbpagesize.test
Chris Davis e4eb6216c2 Enable pdbpagesize to allow support for PDB file sizes > 4GB
Enable the pdbpagesize flag to allow linking of PDB files > 4GB.
Also includes a couple small fixes to change to uint64_t to support the
larger file sizes.  I updated the max file size check in MSFBuilder.cpp
to take into account the page size.

Differential Revision: https://reviews.llvm.org/D115051
2021-12-06 18:22:08 -05:00

24 lines
1.0 KiB
Plaintext

# RUN: yaml2obj %p/Inputs/empty.yaml -o %t.obj
# RUN: not lld-link /entry:main %t.obj /out:%t.exe /debug /pdbpagesize:hi 2>&1 \
# RUN: | FileCheck --check-prefix=INVALID %s
# RUN: not lld-link /entry:main %t.obj /out:%t.exe /debug /pdbpagesize:15 2>&1 \
# RUN: | FileCheck --check-prefix=INVALID %s
# INVALID: error: /pdbpagesize: invalid argument:
# RUN: lld-link /entry:main %t.obj /out:%t.exe /debug /pdbpagesize:4096
# RUN: llvm-pdbutil pdb2yaml %t.pdb | FileCheck --check-prefix=PAGE4096 %s
# PAGE4096: BlockSize: 4096
# RUN: lld-link /entry:main %t.obj /out:%t.exe /debug /pdbpagesize:8192
# RUN: llvm-pdbutil pdb2yaml %t.pdb | FileCheck --check-prefix=PAGE8192 %s
# PAGE8192: BlockSize: 8192
# RUN: lld-link /entry:main %t.obj /out:%t.exe /debug /pdbpagesize:16384
# RUN: llvm-pdbutil pdb2yaml %t.pdb | FileCheck --check-prefix=PAGE16384 %s
# PAGE16384: BlockSize: 16384
# RUN: lld-link /entry:main %t.obj /out:%t.exe /debug /pdbpagesize:32768
# RUN: llvm-pdbutil pdb2yaml %t.pdb | FileCheck --check-prefix=PAGE32768 %s
# PAGE32768: BlockSize: 32768