New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 818243 link

Starred by 3 users

Issue metadata

Status: Assigned
Owner:
Last visit > 30 days ago
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug

Blocking:
issue 818235



Sign in to add a comment

PDB files are not identical (ignoring guid) when link line uses absolute paths.

Project Member Reported by zturner@chromium.org, Mar 2 2018

Issue description

$ cd \

$ lld-link /debug /out:D:\foo\bar\baz.exe /pdb:D:\foo\bar\baz.pdb
$ ren baz.exe baz1.exe
$ ren baz.pdb baz1.pdb

$ del baz.exe baz.pdb

$ lld-link /debug /out:D:\foo\bar\baz.exe /pdb:D:\foo\bar\baz.pdb
$ ren baz.exe baz2.exe
$ ren baz.pdb baz2.pdb

Will cause baz2.pdb to contain differences *other* than the GUID (the GUID is currently generated randomly, however 818241 aims to fix that).

However, if we are in the output directory and use relative paths, such as:

$ cd D:\foo\bar

$ lld-link /debug /out:baz.exe /pdb:baz.pdb
$ ren baz.exe baz1.exe
$ ren baz.pdb baz1.pdb

$ del baz.exe baz.pdb

$ lld-link /debug /out:baz.exe /pdb:baz.pdb
$ ren baz.exe baz2.exe
$ ren baz.pdb baz2.pdb

then the pdbs will be identical (minus guid).
 
Blocking: 818235
Status: Assigned (was: Untriaged)
This bug has an owner, thus, it's been triaged. Changing status to "assigned".

Sign in to add a comment