]> git.lizzy.rs Git - rust.git/commit
Resolve globals having different addresses across crates
authorAlex Crichton <alex@alexcrichton.com>
Thu, 1 Aug 2013 08:53:41 +0000 (01:53 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Thu, 1 Aug 2013 08:54:34 +0000 (01:54 -0700)
commitea5f829307c3a4ba62f6d83e3c3cf0b6affc34f0
treea48be5509cc743add132ecbfb71a366881884d44
parent8ec70ae5de0e33ab62732c59b0b2b0620cb8dce9
Resolve globals having different addresses across crates

* All globals marked as `pub` won't have the `internal` linkage type set
* All global references across crates are forced to use the address of the
  global in the other crate via an external reference.
src/librustc/middle/trans/base.rs
src/librustc/middle/trans/expr.rs
src/test/auxiliary/xcrate_static_addresses.rs [new file with mode: 0644]
src/test/run-pass/xcrate-static-addresses.rs [new file with mode: 0644]