<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/src/librustc_back/target/x86_64_sun_solaris.rs, branch master</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=master</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=master'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2018-04-26T13:39:44+00:00</updated>
<entry>
<title>Rename rustc_back::target to rustc_target::spec.</title>
<updated>2018-04-26T13:39:44+00:00</updated>
<author>
<name>Irina Popa</name>
<email>irinagpopa@gmail.com</email>
</author>
<published>2017-12-08T19:18:21+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=38e964077b5a163fc7e4c825d23f4c7cf0625d4c'/>
<id>urn:sha1:38e964077b5a163fc7e4c825d23f4c7cf0625d4c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>rustc_back: move LinkerFlavor, PanicStrategy, and RelroLevel to target.</title>
<updated>2018-04-26T13:39:27+00:00</updated>
<author>
<name>Irina Popa</name>
<email>irinagpopa@gmail.com</email>
</author>
<published>2017-12-08T15:07:47+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=6f03b80020907a2ac3d3559fcab5516ef870f46b'/>
<id>urn:sha1:6f03b80020907a2ac3d3559fcab5516ef870f46b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>rustc: Specify c_int width for each target</title>
<updated>2017-09-30T13:54:08+00:00</updated>
<author>
<name>Daniel Klauer</name>
<email>daniel.c.klauer@web.de</email>
</author>
<published>2017-09-30T11:47:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=a204c193cad7309412e98db09d6bf8f3c456b063'/>
<id>urn:sha1:a204c193cad7309412e98db09d6bf8f3c456b063</id>
<content type='text'>
(all i32 for now, as in liblibc)
</content>
</entry>
<entry>
<title>rustc: Implement stack probes for x86</title>
<updated>2017-07-06T15:58:19+00:00</updated>
<author>
<name>Alex Crichton</name>
<email>alex@alexcrichton.com</email>
</author>
<published>2017-06-21T19:08:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=5dbd97de3d825c6898df62baca33ff1f57cb77eb'/>
<id>urn:sha1:5dbd97de3d825c6898df62baca33ff1f57cb77eb</id>
<content type='text'>
This commit implements stack probes on x86/x86_64 using the freshly landed
support upstream in LLVM. The purpose of stack probes here are to guarantee a
segfault on stack overflow rather than having a chance of running over the guard
page already present on all threads by accident.

At this time there's no support for any other architecture because LLVM itself
does not have support for other architectures.
</content>
</entry>
<entry>
<title>-Z linker-flavor</title>
<updated>2017-04-07T15:52:42+00:00</updated>
<author>
<name>Jorge Aparicio</name>
<email>japaricious@gmail.com</email>
</author>
<published>2017-02-21T19:47:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=9d11b089ad136432dff6c49c6eb3c48c7f6e5273'/>
<id>urn:sha1:9d11b089ad136432dff6c49c6eb3c48c7f6e5273</id>
<content type='text'>
This patch adds a `-Z linker-flavor` flag to rustc which can be used to invoke
the linker using a different interface.

For example, by default rustc assumes that all the Linux targets will be linked
using GCC. This makes it impossible to use LLD as a linker using just `-C
linker=ld.lld` because that will invoke LLD with invalid command line
arguments. (e.g. rustc will pass -Wl,--gc-sections to LLD but LLD doesn't
understand that; --gc-sections would be the right argument)

With this patch one can pass `-Z linker-flavor=ld` to rustc to invoke the linker
using a LD-like interface. This way, `rustc -C linker=ld.lld -Z
linker-flavor=ld` will invoke LLD with the right arguments.

`-Z linker-flavor` accepts 4 different arguments: `em` (emcc), `ld`,
`gcc`, `msvc` (link.exe). `em`, `gnu` and `msvc` cover all the existing linker
interfaces. `ld` is a new flavor for interfacing GNU's ld and LLD.

This patch also changes target specifications. `linker-flavor` is now a
mandatory field that specifies the *default* linker flavor that the target will
use. This change also makes the linker interface *explicit*; before, it used to
be derived from other fields like linker-is-gnu, is-like-msvc,
is-like-emscripten, etc.

Another change to target specifications is that the fields `pre-link-args`,
`post-link-args` and `late-link-args` now expect a map from flavor to linker
arguments.

``` diff
-    "pre-link-args": ["-Wl,--as-needed", "-Wl,-z,-noexecstack"],
+    "pre-link-args": {
+        "gcc": ["-Wl,--as-needed", "-Wl,-z,-noexecstack"],
+        "ld": ["--as-needed", "-z,-noexecstack"],
+    },
```

[breaking-change]  for users of custom targets specifications
</content>
</entry>
<entry>
<title>change max_atomic_width type from u64 to Option&lt;u64&gt;</title>
<updated>2016-10-04T04:45:40+00:00</updated>
<author>
<name>Jorge Aparicio</name>
<email>japaricious@gmail.com</email>
</author>
<published>2016-10-04T04:45:40+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=6136069609f40e2436d810d4a35433d42266fadc'/>
<id>urn:sha1:6136069609f40e2436d810d4a35433d42266fadc</id>
<content type='text'>
to better express the idea that omitting this field defaults this value
to target_pointer_width
</content>
</entry>
<entry>
<title>librustc_back: convert fn target() to return Result</title>
<updated>2016-07-27T17:28:40+00:00</updated>
<author>
<name>Doug Goldstein</name>
<email>cardoe@cardoe.com</email>
</author>
<published>2016-07-24T16:47:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=eafecbf86855c30d2f6d9c518165edec4cca8248'/>
<id>urn:sha1:eafecbf86855c30d2f6d9c518165edec4cca8248</id>
<content type='text'>
Change all the target generation functions to return a Result&lt;Target,
String&gt; so that targets that are unable to be instantiated can be
expressed as an Err instead of a panic!(). This should improve #33497 as
well.
</content>
</entry>
<entry>
<title>Add #[cfg(target_has_atomic)] to get atomic support for the current target</title>
<updated>2016-05-09T12:31:47+00:00</updated>
<author>
<name>Amanieu d'Antras</name>
<email>amanieu@gmail.com</email>
</author>
<published>2016-04-15T19:16:19+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=04835ea5ec669636fdfbd84d17dbdda4c36bdd9c'/>
<id>urn:sha1:04835ea5ec669636fdfbd84d17dbdda4c36bdd9c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Make data-layout mandatory in target specs.</title>
<updated>2016-04-19T13:08:45+00:00</updated>
<author>
<name>Eduard Burtescu</name>
<email>edy.burt@gmail.com</email>
</author>
<published>2016-04-18T12:38:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=0776399eac62f8cf5cb02761014e8ed6c51204aa'/>
<id>urn:sha1:0776399eac62f8cf5cb02761014e8ed6c51204aa</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix broken Solaris build</title>
<updated>2016-02-21T22:58:49+00:00</updated>
<author>
<name>Nikita Baksalyar</name>
<email>nikita.baksalyar@gmail.com</email>
</author>
<published>2016-02-21T22:57:24+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=e77c79e96d600b9179b1697037e1c0a52558c8f2'/>
<id>urn:sha1:e77c79e96d600b9179b1697037e1c0a52558c8f2</id>
<content type='text'>
</content>
</entry>
</feed>
