Skip to content

Commit

Permalink
test: verify current remap rules on Linux
Browse files Browse the repository at this point in the history
When `--remap-path-scope=object` is specified, user expect that there is
no local path embedded in final executables. Under `object` scope, the
current implementation only remap debug symbols if debug info is
splitted into its own file. In other words, when
`split-debuginfo=packed|unpacked` is set, rustc assumes there is no
embedded path in the final executable needing to be remapped.

However, this doesn't work on Linux. On Linux, the root `DW_AT_comp_dir`
of a compile unit seems to go into the binary binary executables.

This commit demonstrates the case, and hope there is a fix soon.
  • Loading branch information
weihanglo committed Jan 24, 2024
1 parent 33d65e6 commit a55de2b
Showing 1 changed file with 364 additions and 30 deletions.
Loading

0 comments on commit a55de2b

Please sign in to comment.