Skip to content

Relax mipsel-sony-psp's linker script - #97843

Merged
bors merged 2 commits into
rust-lang:masterfrom
overdrivenpotato:psp-lto
Jun 9, 2022
Merged

Relax mipsel-sony-psp's linker script#97843
bors merged 2 commits into
rust-lang:masterfrom
overdrivenpotato:psp-lto

Conversation

@overdrivenpotato

Copy link
Copy Markdown
Contributor

Previously, the linker script forcefully kept all .lib.stub sections, unnecessarily bloating the binary. Now, the script is LTO and --gc-sections friendly.

--nmagic was also added to the linker, because page alignment is not required on the PSP. This further reduces binary size.

Accompanying changes for the psp crate are found in: overdrivenpotato/rust-psp#118

Previously, the linker script forcefully kept all `.lib.stub` sections,
unnecessarily bloating the binary. Now, the script is LTO and
`--gc-sections` friendly.
`--nmagic` was also added to the linker, because page alignment is not
required on the PSP. This further reduces binary size.
Accompanying changes for the PSP crate are found in:
overdrivenpotato/rust-psp#118
@rustbotrustbot added the T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. label Jun 7, 2022
@rust-highfive

Copy link
Copy Markdown
Contributor

r? @lcnr

(rust-highfive has picked a reviewer for you, use r? to override)

@rust-highfive

Copy link
Copy Markdown
Contributor

⚠️Warning⚠️

@rust-highfiverust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jun 7, 2022
@rust-log-analyzer

This comment has been minimized.

@lcnr

lcnr commented Jun 8, 2022

Copy link
Copy Markdown
Contributor

r? @michaelwoerister

@michaelwoerister

Copy link
Copy Markdown
Member

Thanks, @overdrivenpotato! Looks good to me.

@bors r+

@bors

bors commented Jun 8, 2022

Copy link
Copy Markdown
Collaborator

📌 Commit 611107a has been approved by michaelwoerister

@borsbors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jun 8, 2022
JohnTitor added a commit to JohnTitor/rust that referenced this pull request Jun 9, 2022
…woerister
Relax mipsel-sony-psp's linker script
Previously, the linker script forcefully kept all `.lib.stub` sections, unnecessarily bloating the binary. Now, the script is LTO and `--gc-sections` friendly.
`--nmagic` was also added to the linker, because page alignment is not required on the PSP. This further reduces binary size.
Accompanying changes for the `psp` crate are found in: overdrivenpotato/rust-psp#118
@JohnTitorJohnTitor mentioned this pull request Jun 9, 2022
@JohnTitorJohnTitor mentioned this pull request Jun 9, 2022
bors added a commit to rust-lang-ci/rust that referenced this pull request Jun 9, 2022
Rollup of 5 pull requests
Successful merges:
- rust-lang#95632 (impl Read and Write for VecDeque<u8>)
- rust-lang#95860 (Stabilize `$$` in Rust 1.63.0)
- rust-lang#97838 (hexagon: adapt test for upstream output changes)
- rust-lang#97843 (Relax mipsel-sony-psp's linker script)
- rust-lang#97874 (rewrite combine doc comment)
Failed merges:
r? `@ghost`
`@rustbot` modify labels: rollup
@bors
bors merged commit 5d81f91 into rust-lang:masterJun 9, 2022
@rustbotrustbot added this to the 1.63.0 milestone Jun 9, 2022
@overdrivenpotato
overdrivenpotato deleted the psp-lto branch June 12, 2022 17:07
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants

@overdrivenpotato@rust-highfive@rust-log-analyzer@lcnr@michaelwoerister@bors@rustbot