Skip to content

Commit 7399180

Browse files
committed
---
yaml --- r: 90007 b: refs/heads/master c: 01b5381 h: refs/heads/master i: 90005: bb98293 90003: f87bbe5 89999: 00811da v: v3
1 parent 1b1373a commit 7399180

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: fdac9e470cd87429b6aefc6e02772163a8d41fc8
2+
refs/heads/master: 01b53817033ba3a3ec01685d30e4a8e7ce14ba0c
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: a6d3e57dca68fde4effdda3e4ae2887aa535fcd6
55
refs/heads/try: b160761e35efcd1207112b3b782c06633cf441a8

trunk/src/librustc/back/link.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1099,9 +1099,10 @@ pub fn link_args(sess: Session,
10991099
// and binutils 2.22+ won't add them automatically
11001100
if sess.targ_cfg.os == abi::OsLinux {
11011101
// GNU-style linkers supports optimization with -O. --gc-sections removes metadata and
1102-
// potentially other useful things, so don't include it.
1102+
// potentially other useful things, so don't include it. GNU ld doesn't need a numeric
1103+
// argument, but other linkers do.
11031104
if sess.opts.optimize == session::Default || sess.opts.optimize == session::Aggressive {
1104-
args.push(~"-Wl,-O");
1105+
args.push(~"-Wl,-O1");
11051106
}
11061107

11071108
args.push_all([~"-lrt", ~"-ldl"]);

0 commit comments

Comments
 (0)