-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
Some linker sections are missing when building project with nightly toolchain #130397
Copy link
Copy link
Closed
Closed
Copy link
Labels
A-linkageArea: linking into static, shared libraries and binariesArea: linking into static, shared libraries and binariesC-external-bugCategory: issue that is caused by bugs in software beyond our controlCategory: issue that is caused by bugs in software beyond our controlT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.requires-nightlyThis issue requires a nightly compiler in some way. When possible, use a F-* label instead.This issue requires a nightly compiler in some way. When possible, use a F-* label instead.
Metadata
Metadata
Assignees
Labels
A-linkageArea: linking into static, shared libraries and binariesArea: linking into static, shared libraries and binariesC-external-bugCategory: issue that is caused by bugs in software beyond our controlCategory: issue that is caused by bugs in software beyond our controlT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.requires-nightlyThis issue requires a nightly compiler in some way. When possible, use a F-* label instead.This issue requires a nightly compiler in some way. When possible, use a F-* label instead.
Type
Fields
Give feedbackNo fields configured for Bug.
I'm using Ubuntu Linux 20.04.
I have a project which build some
.cfiles (lttng tracepoints) inbuild.rswithcc::Buildand link it to executable.In
stableversion of Rust toolchain everything works fine.But when compiling it with
nightlyRust toolchain some tracepoint data is missing in resulting executable and tracing does not working.Code
Here is the archive of minimal project which have a link problem on
nightly:lttng_link_test.zip
To build the code you may need to install
liblttng-ust-devpackage.The Rust toolchain is specified in
rust-toolchain.tomlfile of the project.I tried this code:
I expected to see this happen:
Instead, this happened:
The
__tracepoint_ptr_hello_world___my_first_tracepointis missing.Version it worked on
It most recently worked on:
Version with regression