-
Notifications
You must be signed in to change notification settings - Fork 12.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
link_section attribute seems to be broken #27467
Comments
How'd you verify this? I tried a few variants myself and it looks like it works. |
It's broken in Nightly release. Try the following code in Playground after choosing 'Asm' and 'Nightly'. #![crate_type="rlib"]
pub struct Struct {
pub field: u32,
}
#[link_section = ".my_section"]
pub static VAR: Struct = Struct { field: 1 }; |
Aha, looks like I was using an older nightly. cc @eefriedman, some informal bisecting turns up 8ebf952 as a suspicious commit |
Yes, that bisection is correct; PR coming up. |
eefriedman
added a commit
to eefriedman/rust
that referenced
this issue
Aug 4, 2015
bors
added a commit
that referenced
this issue
Aug 4, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I compile the code below:
using compiler version 1.3.0-nightly (922aef0 2015-07-27) with the following command line:
As result I get the following symbol inside a produced rlib:
The text was updated successfully, but these errors were encountered: