[PATCH] D51652: lld-link: Write an empty "repro" debug directory entry if /Brepro is passed
Peter Collingbourne via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 4 13:46:09 PDT 2018
pcc added a comment.
Same result.
/mnt/c/src/tmp$ cl.exe /Zi /Brepro main.c
Microsoft (R) C/C++ Optimizing Compiler Version 19.15.26726 for x64
Copyright (C) Microsoft Corporation. All rights reserved.
main.c
Microsoft (R) Incremental Linker Version 14.15.26726.0
Copyright (C) Microsoft Corporation. All rights reserved.
/out:main.exe
/debug
/Brepro
main.obj
/mnt/c/src/tmp$ dumpbin.exe /all main.exe | grep repro
CD094136 repro 24 000774DC 75CDC 01 77 A3 B7 4A AF D1 37 EB FA 80 9D CA A0 A0 85 13 D5 7D F8 47 FD 31 11 81 74 B5 6B 36 41 09 CD
/mnt/c/src/tmp$ cat main.c
int main() {}
Also with separate compilation and linking:
/mnt/c/src/tmp$ cl.exe /Zi /Brepro empty.cpp /c
Microsoft (R) C/C++ Optimizing Compiler Version 19.15.26726 for x64
Copyright (C) Microsoft Corporation. All rights reserved.
empty.cpp
/mnt/c/src/tmp$ link.exe /Brepro empty.obj /noentry /dll
Microsoft (R) Incremental Linker Version 14.15.26726.0
Copyright (C) Microsoft Corporation. All rights reserved.
/mnt/c/src/tmp$ dumpbin.exe /all empty.dll | grep repro
30663452 repro 24 00001064 264 9C 15 A8 DA BA 36 1C DE 3B E0 CE 53 07 D4 02 0A E3 D6 16 41 E5 7E A7 34 E9 17 82 13 52 34 66 30
/mnt/c/src/tmp$ link.exe /Brepro empty.obj /noentry /dll /debug
Microsoft (R) Incremental Linker Version 14.15.26726.0
Copyright (C) Microsoft Corporation. All rights reserved.
/mnt/c/src/tmp$ dumpbin.exe /all empty.dll | grep repro
C5E2911E repro 24 000011A8 3A8 AD 6F 0D 48 73 0A 9F 93 1D F7 42 04 88 11 EC 84 88 C7 06 59 BE D2 37 5A 55 B9 DE 09 1E 91 E2 C5
/mnt/c/src/tmp$ touch empty.c
/mnt/c/src/tmp$ cl.exe /Zi /Brepro empty.c /c
Microsoft (R) C/C++ Optimizing Compiler Version 19.15.26726 for x64
Copyright (C) Microsoft Corporation. All rights reserved.
empty.c
/mnt/c/src/tmp$ link.exe /Brepro empty.obj /noentry /dll
Microsoft (R) Incremental Linker Version 14.15.26726.0
Copyright (C) Microsoft Corporation. All rights reserved.
/mnt/c/src/tmp$ dumpbin.exe /all empty.dll | grep repro
1B739ED0 repro 24 00001064 264 B9 0B 63 16 2D E7 5B D7 F6 93 F0 91 BA A6 A6 C6 C2 FF B2 D3 1A D1 A6 AB 2C 2C 47 67 D0 9E 73 1B
/mnt/c/src/tmp$ link.exe /Brepro empty.obj /noentry /dll /debug
Microsoft (R) Incremental Linker Version 14.15.26726.0
Copyright (C) Microsoft Corporation. All rights reserved.
/mnt/c/src/tmp$ dumpbin.exe /all empty.dll | grep repro
B3F770F9 repro 24 000011A8 3A8 F7 04 47 23 67 3D ED E0 F7 D5 A8 9C 24 8C FD 50 DE BD FD 4C 29 65 B3 5B 81 38 CB 67 F9 70 F7 B3
https://reviews.llvm.org/D51652
More information about the llvm-commits
mailing list