Repository navigation
Enable static-pie on all Musl targets - #166191
Conversation
This enables ASLR and I don't see a reason not to enable it outside x86_64. Musl supports it just fine and in fact Alpine Linux already patches rustc to enable it on all Musl targets.
|
These commits modify compiler targets. |
This comment was marked as outdated.
This comment was marked as outdated.
|
LGTM, I've been wanting to upstream this for a while already but never remembered it when I had time. Thanks! This should probably be in relnotes? |
|
r? petrochenkov (#70740) |
|
@bors r+ |
…nkov Enable static-pie on all Musl targets This enables ASLR and I don't see a reason not to enable it outside x86_64. Musl supports it just fine and in fact Alpine Linux already patches rustc to enable it on all Musl targets. cc @Gelbpunkt
…nkov Enable static-pie on all Musl targets This enables ASLR and I don't see a reason not to enable it outside x86_64. Musl supports it just fine and in fact Alpine Linux already patches rustc to enable it on all Musl targets. cc @Gelbpunkt
…nkov Enable static-pie on all Musl targets This enables ASLR and I don't see a reason not to enable it outside x86_64. Musl supports it just fine and in fact Alpine Linux already patches rustc to enable it on all Musl targets. cc @Gelbpunkt
…uwer Rollup of 5 pull requests Successful merges: - #164918 (Move lint validation to attribute parsing) - #166381 (`rust-analyzer` subtree update) - #166191 (Enable static-pie on all Musl targets) - #166250 (Add a reason suggestion for malformed lint attributes) - #166365 (Drop references to codebuild) Failed merges: - #166374 (Undo accidental duplication checking for attributes on macro calls)
…uwer Rollup of 6 pull requests Successful merges: - #164918 (Move lint validation to attribute parsing) - #166381 (`rust-analyzer` subtree update) - #166191 (Enable static-pie on all Musl targets) - #166390 (Turn `gca` into a macro 2.0 that expands to `k#gca(..)`) - #165764 (view-types: handle field accesses) - #166250 (Add a reason suggestion for malformed lint attributes) Failed merges: - #166374 (Undo accidental duplication checking for attributes on macro calls)
Rollup merge of #166191 - bjorn3:musl_static_pie, r=petrochenkov Enable static-pie on all Musl targets This enables ASLR and I don't see a reason not to enable it outside x86_64. Musl supports it just fine and in fact Alpine Linux already patches rustc to enable it on all Musl targets. cc @Gelbpunkt
|
Note This PR was benchmarked as part of triage of its containing rollup: triage URL. Finished benchmarking commit (8d6c511): comparison URL. Overall result: ❌✅ regressions and improvements - please read:Our benchmarks found a performance regression caused by this PR. Next Steps:
@rustbot label: +perf-regression Instruction countOur most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.
Max RSS (memory usage)This perf run didn't have relevant results for this metric. CyclesResults (secondary 3.0%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeThis perf run didn't have relevant results for this metric. Artifact size: 406.40 MiB -> 405.79 MiB (-0.15%) |
|
I think this may have caused a regression, running on arm now hits a segfault e.g. rust-lang/libc#5776. Looks like that happens before getting to Edit: rust-lang/libc#5778 |
…uwer Rollup of 6 pull requests Successful merges: - rust-lang/rust#164918 (Move lint validation to attribute parsing) - rust-lang/rust#166381 (`rust-analyzer` subtree update) - rust-lang/rust#166191 (Enable static-pie on all Musl targets) - rust-lang/rust#166390 (Turn `gca` into a macro 2.0 that expands to `k#gca(..)`) - rust-lang/rust#165764 (view-types: handle field accesses) - rust-lang/rust#166250 (Add a reason suggestion for malformed lint attributes) Failed merges: - rust-lang/rust#166374 (Undo accidental duplication checking for attributes on macro calls)
This enables ASLR and I don't see a reason not to enable it outside x86_64. Musl supports it just fine and in fact Alpine Linux already patches rustc to enable it on all Musl targets.
cc @Gelbpunkt