<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/src/test/run-make/relocation-model, branch 1.22.1</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.22.1</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.22.1'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2016-03-25T18:07:19+00:00</updated>
<entry>
<title>Add a "link-guard" to avoid accidentally linking to a wrong dylib at runtime.</title>
<updated>2016-03-25T18:07:19+00:00</updated>
<author>
<name>Michael Woerister</name>
<email>michaelwoerister@posteo.net</email>
</author>
<published>2016-03-01T13:19:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=247570732205fd226981082ee5c96c0abf5fed21'/>
<id>urn:sha1:247570732205fd226981082ee5c96c0abf5fed21</id>
<content type='text'>
We want to prevent compiling something against one version
of a dynamic library and then, at runtime accidentally
using a different version of the dynamic library. With the
old symbol-naming scheme this could not happen because every
symbol had the SVH in it and you'd get an error by the
dynamic linker when using the wrong version of a dylib. With
the new naming scheme this isn't the case any more, so this
patch adds the "link-guard" to prevent this error case.

This is implemented as follows:

- In every crate that we compile, we emit a function called
  "__rustc_link_guard_&lt;crate-name&gt;_&lt;crate-svh&gt;"
- The body of this function contains calls to the
  "__rustc_link_guard" functions of all dependencies.
- An executable contains a call to it's own
  "__rustc_link_guard" function.

As a consequence the "__rustc_link_guard" function call graph
mirrors the crate graph and the dynamic linker will fail if a
wrong dylib is loaded somewhere because its
"__rustc_link_guard" function will contain a different SVH in
its name.
</content>
</entry>
<entry>
<title>rmake: Get all tests passing on MSVC</title>
<updated>2015-09-17T15:40:33+00:00</updated>
<author>
<name>Alex Crichton</name>
<email>alex@alexcrichton.com</email>
</author>
<published>2015-08-26T23:57:56+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=0675dffac48101faa2bdb634682b2ddf3975bf31'/>
<id>urn:sha1:0675dffac48101faa2bdb634682b2ddf3975bf31</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add support for different relocation models</title>
<updated>2014-04-06T13:06:44+00:00</updated>
<author>
<name>Flavio Percoco</name>
<email>flaper87@gmail.com</email>
</author>
<published>2014-04-05T12:10:13+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=b78ac5b74a62e7b2772d322004a6bb04967f8437'/>
<id>urn:sha1:b78ac5b74a62e7b2772d322004a6bb04967f8437</id>
<content type='text'>
Rust currently defaults to `RelocPIC` regardless. This patch adds a new
codegen option that allows choosing different relocation-model. The
available models are:

    - default (Use the target-specific default model)
    - static
    - pic
    - no-pic

For a more detailed information use `llc --help`
</content>
</entry>
</feed>
