diff options
| author | bors <bors@rust-lang.org> | 2013-07-23 20:04:53 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-07-23 20:04:53 -0700 |
| commit | af78e23006d9795bca32267a31e6f3cb9e73a6e1 (patch) | |
| tree | df940605470509921b4f69f836a7519308a2662b /src/rt/rust_stack.cpp | |
| parent | 359755a39a1d216a03a4e4d0b14e64e6610bbf91 (diff) | |
| parent | c6c1472c6845ea02fad009603b1c2331b679ed67 (diff) | |
| download | rust-af78e23006d9795bca32267a31e6f3cb9e73a6e1.tar.gz rust-af78e23006d9795bca32267a31e6f3cb9e73a6e1.zip | |
auto merge of #7958 : kemurphy/rust/link-section, r=alexcrichton
This allows for control over the section placement of static, static mut, and fn items. One caveat is that if a static and a static mut are placed in the same section, the static is declared first, and the static mut is assigned to, the generated program crashes. For example: #[link_section=".boot"] static foo : uint = 0xdeadbeef; #[link_section=".boot"] static mut bar : uint = 0xcafebabe; Declaring bar first would mark .bootdata as writable, preventing the crash when bar is written to.
Diffstat (limited to 'src/rt/rust_stack.cpp')
0 files changed, 0 insertions, 0 deletions
