]> git.lizzy.rs Git - rust.git/commit
Keep metadata when using gc-sections with profile-generate.
authorJamie Cunliffe <Jamie.Cunliffe@arm.com>
Thu, 8 Jul 2021 15:50:29 +0000 (16:50 +0100)
committerJamie Cunliffe <Jamie.Cunliffe@arm.com>
Wed, 14 Jul 2021 12:32:51 +0000 (13:32 +0100)
commit7c98b3cfe30d3c4e3ba6ad27bc711819e34382d6
tree4e55756fab2f4d098ffad5fa8bc30c72ce3712bf
parent95fb1315217976ff4c268bb03c9b4132f0dfa9fd
Keep metadata when using gc-sections with profile-generate.

When building with profile-generate request that metadata is kept
during the gc_sections call, as this can sometimes strip out profile
data.
This missing information in the prof files can then result in missing
functions when using the profile information.
compiler/rustc_codegen_ssa/src/back/link.rs